123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <base href="../../../" />
- <script src="list.js"></script>
- <script src="page.js"></script>
- <link type="text/css" rel="stylesheet" href="page.css" />
- </head>
- <body>
- [page:Object3D] →
- <h1>[name]</h1>
- <div class="desc">This displays a cone shaped helper object for a [page:SpotLight].</div>
- <h2>Example</h2>
- <iframe src='../examples/webgl_lights_spotlight.html'></iframe>
- <a target="THREE_Examples" href="../examples/#webgl_lights_spotlight">View in Examples</a><br />
- <h2>Other Examples</h2>
- <div>[example:webgl_lights_spotlights lights / spotlights ]</div>
- <h2>Code Example</h2>
- <code>
- var spotLight = new THREE.SpotLight( 0xffffff );
- spotLight.position.set( 10, 10, 10 );
- scene.add( spotLight );
- var spotLightHelper = new THREE.SpotLightHelper( spotLight );
- scene.add( spotLightHelper );
- </code>
- <h2>Constructor</h2>
- <h3>[name]([page:SpotLight light])</h3>
- <div>light -- The [page:SpotLight] to be visualized.</div>
- <h2>Properties</h2>
- <div>See the base [page:Object3D] class for common properties.</div>
- <h3>[property:LineSegments cone]</h3>
- <div>[page:LineSegments] used to visualize the light.</div>
- <h3>[property:SpotLight light]</h3>
- <div>Reference to the [page:SpotLight] being visualized.</div>
- <h3>[property:object matrix]</h3>
- <div>Reference to the spotLight's [page:Object3D.matrixWorld matrixWorld].</div>
- <h3>[property:object matrixAutoUpdate]</h3>
- <div>
- See [page:Object3D.matrixAutoUpdate]. Set to *false* here as the helper is using the
- spotLight's [page:Object3D.matrixWorld matrixWorld].
- </div>
- <h2>Methods</h2>
- <div>See the base [page:Object3D] class for common methods.</div>
- <h3>[method:null update]()</h3>
- <div>Disposes of the light helper.</div>
- <h3>[method:null update]()</h3>
- <div>Updates the light helper.</div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|