Kuesa Runtime

ThresholdEffect QML Type

Post-processing effect showing only pixels brighter than a specified value. More...

Since: Kuesa 1.0

Properties

Detailed Description

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
                      }
                  ]
              }
         }
     ]
    ...
 }

Property Documentation

threshold : float

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.12Threshold 0.35