AmbientLight.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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>Properties</h2>
  34. <h3>[property:Float intensity]</h3>
  35. <div>
  36. Light's intensity.<br />
  37. In "physically correct" mode, the product of color * intensity is interpreted as luminous irradiance measured in lux at the material surface.<br/>
  38. Default — *1.0*.
  39. </div>
  40. <h2>Methods</h2>
  41. <h3>[method:AmbientLight clone]()</h3>
  42. <div>
  43. <br />
  44. It returns a clone of Ambientlight.
  45. </div>
  46. <h3>[method:JSON toJSON]()</h3>
  47. <div>
  48. Return Ambientlight data in JSON format.
  49. </div>
  50. <h2>Source</h2>
  51. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  52. </body>
  53. </html>