HTML5 three.js Ambient light on canvas (HTML5 canvas three.js Ambient Lighting)

Source: Internet
Author: User

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.



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.