AreaLight.html 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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 todo]</h3>
  30. <h3>.[page:Vector3 right]</h3>
  31. <div>
  32. todo
  33. </div>
  34. <h3>.[page:Vector3 normal]</h3>
  35. <div>
  36. todo
  37. </div>
  38. <h3>.[page:number quadraticAttenuation]</h3>
  39. <div>
  40. todo
  41. </div>
  42. <h3>.[page:number height]</h3>
  43. <div>
  44. todo
  45. </div>
  46. <h3>.[page:number linearAttenuation]</h3>
  47. <div>
  48. todo
  49. </div>
  50. <h3>.[page:number width]</h3>
  51. <div>
  52. todo
  53. </div>
  54. <h3>.[page:number intensity]</h3>
  55. <div>
  56. todo
  57. </div>
  58. <h3>.[page:number constantAttenuation]</h3>
  59. <div>
  60. todo
  61. </div>
  62. <h2>Methods</h2>
  63. <h3>.todo( [page:Vector3 todo] )</h3>
  64. <div>
  65. todo — todo<br />
  66. </div>
  67. <h2>Source</h2>
  68. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  69. </body>
  70. </html>