2
0

PointLightHelper.html 1.3 KB

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