Doc > Nodes > OBJ > DirectionalLight

Doc > Nodes > OBJ > DirectionalLight

Creates a directional light.

Description

no description

Parameters

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
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