Back to Filament

direction

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

1.75.01.0 KB
Original Source

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

direction

[main]
open fun direction(x: Float, y: Float, z: Float): LightManager.Builder

Sets the initial direction of a light in world space.

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

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

Return

This Builder, for chaining calls.

Parameters

main

xlight's direction x coordinate (default is 0)
ylight's direction y coordinate (default is -1)
zlight's direction z coordinate (default is 0)