|
@@ -9,12 +9,28 @@
|
|
|
<body>
|
|
|
<h1>[name]</h1>
|
|
|
|
|
|
- <div class="desc">todo</div>
|
|
|
+ <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]()</h3>
|
|
|
+ <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>
|