1234567891011121314151617181920212223242526272829303132333435 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <script src="../../list.js"></script>
- <script src="../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../page.css" />
- </head>
- <body>
- [page:Object3D] → [page:Light] →
- <h1>[name]</h1>
- <div class="desc">
- This light's color gets applied to all the objects in the scene globally.
- </div>
- <h2>Example</h2>
- <code>var light = new THREE.AmbientLight( 0xff0000 );
- scene.add( light );</code>
- will light objects with red.
- <h2>Constructor</h2>
- <h3>[name]( [page:Float hex] )</h3>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|