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 |
|
---|
12 | <div class="desc">This illuminates the scene from a complete surface. This light only works in the [page:WebGLDeferredRenderer deferredrenderer]. </div>
|
---|
13 |
|
---|
14 |
|
---|
15 | <h2>Example</h2>
|
---|
16 | <code>areaLight1 = new THREE.AreaLight( 0xffffff, 1 );
|
---|
17 | areaLight1.position.set( 0.0001, 10.0001, -18.5001 );
|
---|
18 | areaLight1.rotation.set( -0.74719, 0.0001, 0.0001 );
|
---|
19 | areaLight1.width = 10;
|
---|
20 | areaLight1.height = 1;
|
---|
21 |
|
---|
22 | scene.add( areaLight1 );</code>
|
---|
23 |
|
---|
24 | <h2>Constructor</h2>
|
---|
25 |
|
---|
26 |
|
---|
27 | <h3>[name]( [page:Integer hex], [page:Float intensity])</h3>
|
---|
28 | <div>
|
---|
29 | [page:Integer hex] â Numeric value of the RGB component of the color.<br />
|
---|
30 | [page:Float intensity] â Numeric value of the light's strength/intensity.
|
---|
31 | </div>
|
---|
32 | <div>
|
---|
33 | This creates a arealight with color.
|
---|
34 | </div>
|
---|
35 |
|
---|
36 |
|
---|
37 | <h2>Properties</h2>
|
---|
38 |
|
---|
39 |
|
---|
40 |
|
---|
41 | <h3>.[page:Vector3 right]</h3>
|
---|
42 | <div>
|
---|
43 | todo
|
---|
44 | </div>
|
---|
45 |
|
---|
46 | <h3>.[page:Vector3 normal]</h3>
|
---|
47 | <div>
|
---|
48 | todo
|
---|
49 | </div>
|
---|
50 |
|
---|
51 | <h3>.[page:number quadraticAttenuation]</h3>
|
---|
52 | <div>
|
---|
53 | todo
|
---|
54 | </div>
|
---|
55 |
|
---|
56 | <h3>.[page:number height]</h3>
|
---|
57 | <div>
|
---|
58 | todo
|
---|
59 | </div>
|
---|
60 |
|
---|
61 | <h3>.[page:number linearAttenuation]</h3>
|
---|
62 | <div>
|
---|
63 | todo
|
---|
64 | </div>
|
---|
65 |
|
---|
66 | <h3>.[page:number width]</h3>
|
---|
67 | <div>
|
---|
68 | todo
|
---|
69 | </div>
|
---|
70 |
|
---|
71 | <h3>.[page:Float intensity]</h3>
|
---|
72 | <div>
|
---|
73 | Light's intensity.<br />
|
---|
74 | Default â *1.0*.
|
---|
75 | </div>
|
---|
76 |
|
---|
77 | <h3>.[page:number constantAttenuation]</h3>
|
---|
78 | <div>
|
---|
79 | todo
|
---|
80 | </div>
|
---|
81 |
|
---|
82 |
|
---|
83 | <h2>Source</h2>
|
---|
84 |
|
---|
85 | [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
|
---|
86 | </body>
|
---|
87 | </html>
|
---|