SpotLightHelper.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Object3D] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">This displays a cylinder helper object for a [page:SpotLight] </div>
  14. <h2>Example</h2>
  15. <iframe src='../examples/webgl_lights_spotlight.html'></iframe>
  16. <a target="THREE_Examples" href="../examples/#webgl_lights_spotlight">View in Examples</a><br />
  17. <h2>Other Examples</h2>
  18. <div>[example:webgl_lights_spotlights lights / spotlights ]</div>
  19. <h2>Code Example</h2>
  20. <code>
  21. var spotLight = new THREE.SpotLight( 0xffffff );
  22. spotLight.position.set( 10, 10, 10 );
  23. scene.add( spotLight );
  24. var spotLightHelper = new THREE.SpotLightHelper( spotLight );
  25. scene.add( spotLightHelper );
  26. </code>
  27. <h2>Constructor</h2>
  28. <h3>[name]([page:SpotLight light])</h3>
  29. <div>
  30. light -- The [page:SpotLight] to display
  31. </div>
  32. <h2>Properties</h2>
  33. <h3>[property:SpotLight light]</h3>
  34. <div>
  35. The [page:SpotLight]
  36. </div>
  37. <h2>Methods</h2>
  38. <h3>[method:null update]()</h3>
  39. <div>
  40. Updates the light helper.
  41. </div>
  42. <h2>Source</h2>
  43. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  44. </body>
  45. </html>