Doc > Nodes > OBJ > DirectionalLight

Doc > Nodes > OBJ > DirectionalLight

Creates a directional light.

Description

no description

Parameters

Name Type Description
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
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
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