Back to Filament

setSpotLightCone

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

1.75.0888 B
Original Source

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

setSpotLightCone

[main]
open fun setSpotLightCone(i: Int, inner: Float, outer: Float)

Dynamically updates a spot light's cone as angles

Parameters

main

iInstance of the component obtained from getInstance().
innerinner cone angle in radians between 0 and pi/2
outerouter cone angle in radians between inner and pi/2

See also

LightManager.Builder