ShadowMapPlugin.html 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. <h1>[name]</h1>
  11. <div class="desc">The Webglrenderer plugin class that allows shadowmaps to be rendered in the WebglRenderer. This plugin is automatically loaded in the Webglrenderer.</div>
  12. <h2>Constructor</h2>
  13. <h3>[name]()</h3>
  14. <div>
  15. Creates a new [name].
  16. </div>
  17. <h2>Methods</h2>
  18. <h3>.init([page:WebglRenderer renderer])</h3>
  19. <div>
  20. renderer -- The WebglRenderer that uses the plugin.
  21. </div>
  22. <div>
  23. Initializes the plugin to work with the renderer. This gets called when the plugin gets added as a plugin to the renderer.
  24. </div>
  25. <h3>.update([page:Scene scene], [page:Camera camera]) </h3>
  26. <div>
  27. scene -- The scene to render. <br />
  28. camera -- The camera to render.
  29. </div>
  30. <div>
  31. Updates the textures nessecary for the shadowmaps. This gets called by updateShadowMap in [page:WebglRenderer].
  32. </div>
  33. <h3>.render([page:Scene scene], [page:Camera camera])</h3>
  34. <div>
  35. scene -- The scene to render. <br />
  36. camera -- The camera to render.
  37. </div>
  38. <div>
  39. Prepares the shadowmaps to be rendered defined in the scene. This gets automatically called as pre render function to draw the lensflares.
  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>