Back to Filament

setShadowCaster

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

1.75.0731 B
Original Source

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

setShadowCaster

[main]
open fun setShadowCaster(i: Int, shadowCaster: Boolean)

Whether this Light casts shadows (disabled by default)

warning:POINT cannot cast shadows.

Parameters

main

iInstance of the component obtained from getInstance().
shadowCasterEnables or disables casting shadows from this Light.