HemisphereLightHelper.html 2.2 KB
Newer Older
1 2 3
<!DOCTYPE html>
<html lang="en">
	<head>
4
		<meta charset="utf-8" />
K
Kevan Stannard 已提交
5
		<base href="../../" />
M
Mr.doob 已提交
6 7 8
		<script src="list.js"></script>
		<script src="page.js"></script>
		<link type="text/css" rel="stylesheet" href="page.css" />
9 10
	</head>
	<body>
11
		[page:Object3D] &rarr;
M
Mr.doob 已提交
12

13
		<h1>[name]</h1>
M
Mr.doob 已提交
14

15
		<div class="desc">
L
looeee 已提交
16
			Creates a visual aid consisting of a spherical [page:Mesh] for a [page:HemisphereLight HemisphereLight].
17 18 19 20 21
		</div>

		<h3>Example</h3>

		<code>
L
looeee 已提交
22
var light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
23

L
looeee 已提交
24
var helper = new THREE.HemisphereLightHelper( light, 5 );
25

L
looeee 已提交
26
scene.add( helper );
27
		</code>
M
Mr.doob 已提交
28 29


30
		<h2>Constructor</h2>
M
Mr.doob 已提交
31

L
Lewy Blue 已提交
32
		<h3>[name]( [page:HemisphereLight light], [page:Number sphereSize], [page:Hex color] )</h3>
C
cjshannon 已提交
33
		<div>
34 35 36 37
			[page:HemisphereLight light] -- The light being visualized. <br /><br />

			[page:Number size] -- The size of the mesh used to visualize the light.<br /><br />
			
38
			[page:Hex color] -- (optional) if this is not the set the helper will take the color of the light.
C
cjshannon 已提交
39
		</div>
M
Mr.doob 已提交
40 41


42
		<h2>Properties</h2>
43 44 45 46
		<div>See the base [page:Object3D] class for common properties.</div>

		<h3>[property:HemisphereLight light]</h3>
		<div>Reference to the HemisphereLight being visualized.</div>
M
Mr.doob 已提交
47

48 49 50 51
		<h3>[property:object matrix]</h3>
		<div>Reference to the hemisphereLight's [page:Object3D.matrixWorld matrixWorld].</div>

		<h3>[property:object matrixAutoUpdate]</h3>
C
cjshannon 已提交
52
		<div>
53 54
			See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the
			hemisphereLight's [page:Object3D.matrixWorld matrixWorld].
M
Mr.doob 已提交
55
		</div>
C
cjshannon 已提交
56

L
Lewy Blue 已提交
57
		<h3>[property:hex color]</h3>
58
		<div>
L
Lewy Blue 已提交
59 60
			 The color parameter passed in the constructor. Default is *undefined*. If this is changed, the helper's color will update
			the next time [page:.update update] is called.
61 62
		</div>

M
Mr.doob 已提交
63

64
		<h2>Methods</h2>
65 66 67 68
		<div>See the base [page:Object3D] class for common methods.</div>

		<h3>[method:null dispose]()</h3>
		<div>Dispose of the hemisphereLightHelper.</div>
M
Mr.doob 已提交
69

G
gero3 已提交
70
		<h3>[method:null update]()</h3>
71
		<div>Updates the helper to match the position and direction of the [page:.light].</div>
M
Mr.doob 已提交
72

M
Mr.doob 已提交
73

74
		<h2>Source</h2>
M
Mr.doob 已提交
75

76 77 78
		[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
	</body>
</html>