AmbientLight.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 color], [page:Float intensity] )</h3>
  27. <div>
  28. [page:Integer color] — Numeric value of the RGB component of the color. <br />
  29. [page:Float intensity] -- Numeric value of the light's strength/intensity.
  30. </div>
  31. <div>
  32. This creates an Ambientlight with a color and intensity.
  33. </div>
  34. <h2>Properties</h2>
  35. See the base [page:Light Light] class for common properties.
  36. <h2>Methods</h2>
  37. See the base [page:Light Light] class for common methods.
  38. <h2>Source</h2>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </body>
  41. </html>