SpotLightHelper.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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;
  11. <h1>[name]</h1>
  12. <div class="desc">This displays a cylinder helper object for a [page:SpotLight] </div>
  13. <h2>Example</h2>
  14. <code>
  15. var spotLight = new THREE.SpotLight( 0xffffff );
  16. spotLight.position.set( 10, 10, 10 );
  17. scene.add( spotLight );
  18. var spotLightHelper = new THREE.SpotLightHelper( spotLight );
  19. scene.add( spotLightHelper );
  20. </code>
  21. <h2>Constructor</h2>
  22. <h3>[name]([page:SpotLight light])</h3>
  23. <div>
  24. light -- The [page:SpotLight] to display
  25. </div>
  26. <h2>Properties</h2>
  27. <h3>[property:SpotLight light]</h3>
  28. <div>
  29. The [page:SpotLight]
  30. </div>
  31. <h2>Methods</h2>
  32. <h3>[method:null update]()</h3>
  33. <div>
  34. Updates the light helper.
  35. </div>
  36. <h2>Source</h2>
  37. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  38. </body>
  39. </html>