Back to Filament

castShadows

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

1.75.0760 B
Original Source

//filament-android/com.google.android.filament/RenderableManager/Builder/castShadows

castShadows

[main]
open fun castShadows(enabled: Boolean): RenderableManager.Builder

Controls if this renderable casts shadows, false by default. If the View's shadow type is set to VSM, castShadows should only be disabled if either is true:

  • setReceiveShadows is also disabled
  • the object is guaranteed to not cast shadows on itself or other objects (for example, a ground plane)