SpritePlugin.html 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 Sprites 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>.render([page:Scene scene], [page:Camera camera], [page:Number viewportWidth], [page:Number viewportHeight])</h3>
  26. <div>
  27. scene -- The scene to render. <br />
  28. camera -- The camera to render. <br />
  29. viewportWidth -- The width of the viewport. <br />
  30. viewportHeight -- The height of the viewport.
  31. </div>
  32. <div>
  33. Renders the sprites defined in the scene. This gets automatically called as post-render function to draw the lensflares.
  34. </div>
  35. <h2>Source</h2>
  36. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  37. </body>
  38. </html>