Doc > Nodes > OBJ > DirectionalLight

Doc > Nodes > OBJ > DirectionalLight

Creates a directional light.


no description


Name Type Description
keepPosWhenParenting boolean toggle on to keep world position when adding a parent or removing from one
rotationOrder integer rotation order
t vector3 translate
r vector3 rotation
s vector3 scale
scale float scale
matrixAutoUpdate boolean set for the matrix to be updated every frame
color color light color
intensity float light intensity
distance float light distance
showHelper boolean toggle to show helper
name string light name
castShadow boolean toggle on to cast shadows
shadowAutoUpdate boolean toggle off if the shadows do not need to be regenerated
shadowUpdateOnNextRender boolean press button to update the shadows on next render
shadowRes vector2 shadow resolution
shadowSize vector2 shadow size
shadowBias float shadow bias
shadowRadius float shadows radius. This only has effect when setting the ROP/WebGLRenderer's shadowMapType to VSM
Is this doc helpful/not helpful? Is there any information you would like that is not available? Don't hesitate to get in touch with any question or feedback, either by email, on Discord or the forum.