123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <script src="../../list.js"></script>
- <script src="../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <div class="desc">This illuminates the scene from a complete surface. This light only works in the [page:WebGLDeferredRenderer deferredrenderer]. </div>
- <h2>Example</h2>
- <code>areaLight1 = new THREE.AreaLight( 0xffffff, 1 );
- areaLight1.position.set( 0.0001, 10.0001, -18.5001 );
- areaLight1.rotation.set( -0.74719, 0.0001, 0.0001 );
- areaLight1.width = 10;
- areaLight1.height = 1;
- scene.add( areaLight1 );</code>
- <h2>Constructor</h2>
- <h3>[name]( [page:Float hex], [page:Float intensity])</h3>
- <div>
- [page:Integer hex] — Numeric value of the RGB component of the color.<br />
- [page:Integer intensity] — The intensity of the light.
- </div>
- <div>
- This creates a arealight with color.
- </div>
- <h2>Properties</h2>
- <h3>.[page:Vector3 todo]</h3>
- <h3>.[page:Vector3 right]</h3>
- <div>
- todo
- </div>
- <h3>.[page:Vector3 normal]</h3>
- <div>
- todo
- </div>
- <h3>.[page:number quadraticAttenuation]</h3>
- <div>
- todo
- </div>
- <h3>.[page:number height]</h3>
- <div>
- todo
- </div>
- <h3>.[page:number linearAttenuation]</h3>
- <div>
- todo
- </div>
- <h3>.[page:number width]</h3>
- <div>
- todo
- </div>
- <h3>.[page:number intensity]</h3>
- <div>
- todo
- </div>
- <h3>.[page:number constantAttenuation]</h3>
- <div>
- todo
- </div>
- <h2>Methods</h2>
- <h3>.todo( [page:Vector3 todo] )</h3>
- <div>
- todo — todo<br />
- </div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|