Back to Filament

setMaskThreshold

docs/android/dokka/filament-android/com.google.android.filament/-material-instance/set-mask-threshold.md

1.75.0815 B
Original Source

//filament-android/com.google.android.filament/MaterialInstance/setMaskThreshold

setMaskThreshold

[main]
open fun setMaskThreshold(threshold: Float)

Overrides the minimum alpha value a fragment must have to not be discarded when the blend mode is MASKED. Defaults to 0.4 if it has not been set in the parent Material. The specified value should be between 0 and 1 and will be clamped if necessary.

See also

<a href="https://google.github.io/filament/Materials.html#materialdefinitions/materialblock/blendingandtransparency:maskthreshold">Blending and transparency: maskThreshold