Function createDirectionalLight
-
Parameters
- direction: [number, number, number]
World-space direction the light travels along.
- intensity: number = 1
Scalar multiplier applied to the light's diffuse and specular contribution.
Returns DirectionalLight
Plain
DirectionalLightdata to be added to a scene viaaddToScene. - direction: [number, number, number]
Creates a directional light shining along
direction(a parallel light source, like the sun).