Back to Filament

cutOffDistance

docs/android/dokka/filament-android/com.google.android.filament/-view/-fog-options/cut-off-distance.md

1.75.0712 B
Original Source

//filament-android/com.google.android.filament/View/FogOptions/cutOffDistance

cutOffDistance

[main]
open var cutOffDistance: Float

Distance in world units [m] after which the fog calculation is disabled. This can be used to exclude the skybox, which is desirable if it already contains clouds or fog. The default value is +infinity which applies the fog to everything.

Note: The SkyBox is typically at a distance of 1e19 in world space (depending on the near plane distance and projection used though).