Back to Filament

setSpecularAntiAliasingThreshold

docs/android/dokka/filament-android/com.google.android.filament/-material-instance/set-specular-anti-aliasing-threshold.md

1.75.0874 B
Original Source

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

setSpecularAntiAliasingThreshold

[main]
open fun setSpecularAntiAliasingThreshold(threshold: Float)

Sets the clamping threshold used to suppress estimation errors when applying specular anti-aliasing. The default value is set to 0.2. 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/anti-aliasing:specularantialiasingthreshold">Anti-aliasing: specularAntiAliasingThreshold