Back to Filament

highPrecision

docs/android/dokka/filament-android/com.google.android.filament/-view/-vsm-shadow-options/high-precision.md

1.75.0697 B
Original Source

//filament-android/com.google.android.filament/View/VsmShadowOptions/highPrecision

highPrecision

[main]
open var highPrecision: Boolean

Whether to use a 32-bits or 16-bits texture format for VSM shadow maps. 32-bits precision is rarely needed, but it does reduce light leaks as well as "fading" of the shadows in some situations. Setting highPrecision to true for a single shadow map will double the memory usage of all shadow maps. This may not be supported on all mobile devices.