source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/docs/api/lights/PointLight.html@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 1.4 KB
Line 
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 [page:Object3D] &rarr; [page:Light] &rarr;
11
12 <h1>[name]</h1>
13
14 <div class="desc">
15 Affects objects using [page:MeshLambertMaterial] or [page:MeshPhongMaterial].
16 </div>
17
18
19 <h2>Example</h2>
20
21 <code>var light = new THREE.PointLight( 0xff0000, 1, 100 );
22light.position.set( 50, 50, 50 );
23scene.add( light );</code>
24
25
26 <h2>Constructor</h2>
27
28
29 <h3>[name]([page:Integer hex], [page:Float intensity], [page:todo distance])</h3>
30 <div>
31 [page:Integer hex] — Numeric value of the RGB component of the color. <br />
32 [page:Float intensity] — Numeric value of the light's strength/intensity. <br />
33 distance -- todo
34 </div>
35 <div>
36 Creates a light at a specific position in the scene. The light shines in all directions (roughly similar to a light bulb.)
37
38 </div>
39
40
41 <h2>Properties</h2>
42
43 <h3>.[page:Float intensity]</h3>
44 <div>
45 Light's intensity.<br />
46 Default - *1.0*.
47 </div>
48
49 <h3>.[page:Float distance]</h3>
50 <div>
51 If non-zero, light will attenuate linearly from maximum intensity at light *position* down to zero at *distance*.<br />
52 Default — *0.0*.
53 </div>
54
55 <h2>Methods</h2>
56
57
58 <h2>Source</h2>
59
60 [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
61 </body>
62</html>
Note: See TracBrowser for help on using the repository browser.