HTML5 three.js Ambient light on canvas (HTML5 canvas three.js Ambient Lighting)
The beautiful Life of the Sun Vulcan (http://blog.csdn.net/opengl_es)
This article follows "Attribution-non-commercial use-consistent" authoring public agreement
Reprint Please keep this sentence: Sun Vulcan's Beautiful Life-this blog focuses on Agile development and mobile and IoT device research: IOS, Android, HTML5, Arduino, Pcduino , Otherwise, the article from this blog refused to reprint or re-reproduced, thank you for your cooperation.
HTML5 three.js Ambient light on the canvas
HTML5 Canvas three.js Ambient Lighting
<! DOCTYPE html>
Discuss
Discussion
To create an ambient light using three.js, we can instantiate a Ambientlight object and add it to the scene. Ambient lighting requires a color to define. Ambient lighting illuminates the entire scene and can be used to soften the position of light, such as directional lights.
To create ambient lighting with three.js, we can instantiate a ambientlight object and then add it to the scene. Ambientlight requires is defined with a color. Ambient lights illuminate the entire scene and can be used to soften positional lights such as directional lights.