Back to Filament

position

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

1.75.01.0 KB
Original Source

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

position

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

Sets the initial position of the light in world space.

note: The Light's position is ignored for directional lights (DIRECTIONAL or SUN)

Return

This Builder, for chaining calls.

Parameters

main

xLight's position x coordinate in world space. The default is 0.
yLight's position y coordinate in world space. The default is 0.
zLight's position z coordinate in world space. The default is 0.