2
0

AmbientLight.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Object3D] &rarr; [page:Light] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">
  14. This light's color gets applied to all the objects in the scene globally.
  15. </div>
  16. <h2>Example</h2>
  17. <div>[example:canvas_camera_orthographic camera / orthographic ]</div>
  18. <div>[example:canvas_interactive_voxelpainter interactive / voxelpainter ]</div>
  19. <div>[example:canvas_materials materials ]</div>
  20. <div>[example:canvas_sandbox sandbox ]</div>
  21. <div>[example:webgl_animation_cloth animation / cloth ]</div>
  22. <div>[example:webgl_animation_skinning_blending animation / skinning / blending ]</div>
  23. <code>var light = new THREE.AmbientLight( 0x404040 ); // soft white light
  24. scene.add( light );</code>
  25. <h2>Constructor</h2>
  26. <h3>[name]( [page:Integer hex] )</h3>
  27. <div>
  28. [page:Integer hex] — Numeric value of the RGB component of the color.
  29. </div>
  30. <div>
  31. This creates an Ambientlight with a color.
  32. </div>
  33. <h2>Methods</h2>
  34. <h3>[method:AmbientLight clone]()</h3>
  35. <div>
  36. <br />
  37. It returns a clone of Ambientlight.
  38. </div>
  39. <h3>[method:JSON toJSON]()</h3>
  40. <div>
  41. Return Ambientlight data in JSON format.
  42. </div>
  43. <h2>Source</h2>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </body>
  46. </html>