HTML5 Canvas Three.js Directional Lighting

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.

Open in new window

Code Editor

Modified on April 19th, 2013 by Eric Rowell
comments powered by Disqus