[name]

The Webglrenderer plugin class that allows shadowmaps to be rendered in the WebglRenderer. This plugin is automatically loaded in the Webglrenderer.

Constructor

[name]()

Creates a new [name].

Methods

.init([page:WebglRenderer renderer])

renderer -- The WebglRenderer that uses the plugin.
Initializes the plugin to work with the renderer. This gets called when the plugin gets added as a plugin to the renderer.

.update([page:Scene scene], [page:Camera camera])

scene -- The scene to render.
camera -- The camera to render.
Updates the textures nessecary for the shadowmaps. This gets called by updateShadowMap in [page:WebglRenderer].

.render([page:Scene scene], [page:Camera camera])

scene -- The scene to render.
camera -- The camera to render.
Prepares the shadowmaps to be rendered defined in the scene. This gets automatically called as pre render function to draw the lensflares.

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]