Three.js - Directional Light



Directional light comes from a specific point and is emitted directly from far away to the target. All the light rays it sends out are parallel to each other. An excellent example of this is the sun.

const light = THREE.DirectionalLight(color, intensity)
light.position.set(2, 3, 4)
Directional Light
threejs_lights_and_shadows.htm
Advertisements