AreaLight.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. <h1>[name]</h1>
  11. <div class="desc">This illuminates the scene from a complete surface. This light only works in the [page:WebGLDeferredRenderer deferredrenderer]. </div>
  12. <h2>Example</h2>
  13. <code>areaLight1 = new THREE.AreaLight( 0xffffff, 1 );
  14. areaLight1.position.set( 0.0001, 10.0001, -18.5001 );
  15. areaLight1.rotation.set( -0.74719, 0.0001, 0.0001 );
  16. areaLight1.width = 10;
  17. areaLight1.height = 1;
  18. scene.add( areaLight1 );</code>
  19. <h2>Constructor</h2>
  20. <h3>[name]( [page:Float hex], [page:Float intensity])</h3>
  21. <div>
  22. [page:Integer hex] — Numeric value of the RGB component of the color.<br />
  23. [page:Integer intensity] — The intensity of the light.
  24. </div>
  25. <div>
  26. This creates a arealight with color.
  27. </div>
  28. <h2>Properties</h2>
  29. <h3>.[page:Vector3 right]</h3>
  30. <div>
  31. todo
  32. </div>
  33. <h3>.[page:Vector3 normal]</h3>
  34. <div>
  35. todo
  36. </div>
  37. <h3>.[page:number quadraticAttenuation]</h3>
  38. <div>
  39. todo
  40. </div>
  41. <h3>.[page:number height]</h3>
  42. <div>
  43. todo
  44. </div>
  45. <h3>.[page:number linearAttenuation]</h3>
  46. <div>
  47. todo
  48. </div>
  49. <h3>.[page:number width]</h3>
  50. <div>
  51. todo
  52. </div>
  53. <h3>.[page:number intensity]</h3>
  54. <div>
  55. todo
  56. </div>
  57. <h3>.[page:number constantAttenuation]</h3>
  58. <div>
  59. todo
  60. </div>
  61. <h2>Methods</h2>
  62. <h2>Source</h2>
  63. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  64. </body>
  65. </html>