123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <!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 shadowmaps 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>.update([page:Scene scene], [page:Camera camera]) </h3>
- <div>
- scene -- The scene to render. <br />
- camera -- The camera to render.
- </div>
- <div>
- Updates the textures nessecary for the shadowmaps. This gets called by updateShadowMap in [page:WebglRenderer].
- </div>
- <h3>.render([page:Scene scene], [page:Camera camera])</h3>
- <div>
- scene -- The scene to render. <br />
- camera -- The camera to render.
- </div>
- <div>
- Prepares the shadowmaps to be rendered defined in the scene. This gets automatically called as pre 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>
|