12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8" />
- <script src="../../../../list.js"></script>
- <script src="../../../../page.js"></script>
- <link type="text/css" rel="stylesheet" href="../../../../page.css" />
- </head>
- <body>
- <h1>[name]</h1>
- <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>
- <h2>Constructor</h2>
- <h3>[name]()</h3>
- <div>
- Creates a new [name].
- </div>
- <h2>Methods</h2>
- <h3>.init([page:WebglRenderer renderer])</h3>
- <div>
- renderer -- The WebglRenderer that uses the plugin.
- </div>
- <div>
- Initializes the plugin to work with the renderer. This gets called when the plugin gets added as a plugin to the renderer.
- </div>
- <h3>.render([page:Scene scene], [page:Camera camera], [page:Number viewportWidth], [page:Number viewportHeight])</h3>
- <div>
- scene -- The scene to render. <br />
- camera -- The camera to render. <br />
- viewportWidth -- The width of the viewport. <br />
- viewportHeight -- The height of the viewport.
- </div>
- <div>
- Renders the sprites defined in the scene. This gets automatically called as post-render function to draw the lensflares.
- </div>
- <h2>Source</h2>
- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
- </body>
- </html>
|