To create a directional light source with Three.js, we can instantiate a DirectionalLight object and then add it to the scene. DirectionalLight requires a color parameter and also accepts two other optional parameters, the lightIntensity and distance.
Code Editor
Modified on April 19th, 2013
by Eric Rowell