Back to Filament

castLight

docs/android/dokka/filament-android/com.google.android.filament/-light-manager/-builder/cast-light.md

1.75.0689 B
Original Source

//filament-android/com.google.android.filament/LightManager/Builder/castLight

castLight

[main]
open fun castLight(enabled: Boolean): LightManager.Builder

Whether this light casts light (enabled by default)

In some situations it can be useful to have a light in the scene that doesn't actually emit light, but does cast shadows.

Return

This Builder, for chaining calls.

Parameters

main

enabledEnables or disables lighting from this Light.