DirectionalLightHelper.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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">Visualize a [page:DirectionalLight]'s effect on the scene</div>
  14. <h2>Constructor</h2>
  15. <h3>[name]([page:DirectionalLight light], [page:Number size])</h3>
  16. <div>
  17. light -- [page:DirectionalLight] -- Light to visualize <br />
  18. size -- dimensions of the plane
  19. </div>
  20. <div>
  21. Creates a line and plane to visualize the light's position and direction
  22. </div>
  23. <h2>Properties</h2>
  24. <h3>[property:Line lightPlane]</h3>
  25. <div>
  26. Contains the line mesh showing the location of the directional light.
  27. </div>
  28. <h3>[property:DirectionalLight light]</h3>
  29. <div>
  30. Contains the directionalLight.
  31. </div>
  32. <h3>[property:Line targetLine]</h3>
  33. <div>
  34. Contains the line mesh that shows the direction of the light.
  35. </div>
  36. <h2>Methods</h2>
  37. <h3>.[method:null update]()</h3>
  38. <div>
  39. Updates the helper to match the position and direction of the [page:.light].
  40. </div>
  41. <h2>Source</h2>
  42. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  43. </body>
  44. </html>