PointLightHelper.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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:Mesh] &rarr;
  11. <h1>[name]</h1>
  12. <div class="desc">This displays a helper object for a [page:PointLight] </div>
  13. <h2>Example</h2>
  14. <code>var pointLight = new THREE.PointLight( 0xff0000, 1, 100 );
  15. pointLight.position.set( 10, 10, 10 );
  16. scene.add( pointLight );
  17. var sphereSize = 1;
  18. var pointLightHelper = new THREE.PointLightHelper( pointLight, sphereSize );
  19. scene.add( pointLightHelper );
  20. </code>
  21. [example:webgl_helpers Example using various helpers]
  22. <h2>Constructor</h2>
  23. <h3>[name]([page:PointLight light], [page:Float sphereSize])</h3>
  24. <div>
  25. light -- The [page:PointLight] to display. <br />
  26. sphereSize -- The size of the sphere helper
  27. </div>
  28. <h2>Properties</h2>
  29. <h3>[property:PointLight light]</h3>
  30. <div>
  31. The [page:PointLight] that is being represented.
  32. </div>
  33. <h2>Methods</h2>
  34. <h3>[method:null update]()</h3>
  35. <div>
  36. Updates the light helper.
  37. </div>
  38. <h2>Source</h2>
  39. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  40. </body>
  41. </html>