Back to Filament

setFalloff

docs/android/dokka/filament-android/com.google.android.filament/-light-manager/set-falloff.md

1.75.0697 B
Original Source

//filament-android/com.google.android.filament/LightManager/setFalloff

setFalloff

[main]
open fun setFalloff(i: Int, falloff: Float)

Set the falloff distance for point lights and spot lights.

Parameters

main

iInstance of the component obtained from getInstance().
fallofffalloff distance in world units. Default is 1 meter.

See also

LightManager.Builder