Back to Filament

heightFalloff

docs/android/dokka/filament-android/com.google.android.filament/-view/-fog-options/height-falloff.md

1.75.0762 B
Original Source

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

heightFalloff

[main]
open var heightFalloff: Float

How fast the fog dissipates with the altitude. heightFalloff has a unit of [1/m]. It can be expressed as 1/H, where H is the altitude change in world units [m] that causes a factor 2.78 (e) change in fog density.

A falloff of 0 means the fog density is constant everywhere and may result is slightly faster computations.

In linearFog mode, only use to compute the slope of the linear equation. Completely ignored if set to 0.