Back to Filament

setDirection

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

1.75.01.1 KB
Original Source

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

setDirection

[main]
open fun setDirection(i: Int, x: Float, y: Float, z: Float)

Dynamically updates the light's direction

The light direction is specified in world space and should be a unit vector.

note: The Light's direction is ignored for POINT lights.

Parameters

main

iInstance of the component obtained from getInstance().
xlight's direction x coordinate (default is 0)
ylight's direction y coordinate (default is -1)
zlight's direction z coordinate (default is 0)

See also

LightManager.Builder