SpotLightHelper.html 1.1 KB

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