Light.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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;
  12. <h1>[name]</h1>
  13. <div class="desc">Abstract base class for lights.</div>
  14. <h2>Constructor</h2>
  15. <h3>[name]( [page:Integer color], [page:float intensity] )</h3>
  16. <div>
  17. [page:Integer color] — Numeric value of the RGB component of the color.<br />
  18. [page:Float intensity] — Numeric value of the light's strength/intensity.
  19. </div>
  20. <div>
  21. This creates a light with color and intensity.<br />
  22. </div>
  23. <h2>Properties</h2>
  24. See the base [page:Object3D Object3D] class for common properties.
  25. <h3>[property:Color color]</h3>
  26. <div>
  27. Color of the light.<br />
  28. </div>
  29. <h3>[property:Float intensity]</h3>
  30. <div>
  31. Light's intensity.<br />
  32. In "physically correct" mode, the product of color * intensity is interpreted as luminous intensity measured in candela.<br/>
  33. Default — *1.0*.
  34. </div>
  35. <h2>Methods</h2>
  36. See the base [page:Object3D Object3D] class for common methods.
  37. <h3>[method:Light copy]( [page:Light source] )</h3>
  38. <div>
  39. <br />
  40. Copies value of *source* to this Light object.
  41. </div>
  42. <h3>[method:JSON toJSON]( [page:String meta] )</h3>
  43. <div>
  44. Return Light data in JSON format.
  45. </div>
  46. <h2>Source</h2>
  47. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  48. </body>
  49. </html>