Post-processing effect showing only pixels brighter than a specified value. More...
| Since: | Kuesa 1.0 |
ThresholdEffect is a post-processing effect that passes through any pixel above a certain brightness value and sets all others to black.
import Kuesa 1.1 as Kuesa
import Kuesa.Effects 1.1
Kuesa.SceneEnity {
id: root
components: [
RenderSettings {
Kuesa.ForwardRenderer {
postProcessingEffects: [
ThresholdEffect {
threshold: 0.5
}
]
}
}
]
...
}
the brightness value used as a cut-off
This value is used to determine how bright a pixel needs to be to pass the threshold.
| Threshold 0.12 | Threshold 0.35 |
|---|---|
![]() | ![]() |