ShadowMapRenderer Class |
Namespace: DigitalRune.Graphics.Rendering
The ShadowMapRenderer type exposes the following members.
Name | Description | |
---|---|---|
ShadowMapRenderer(FuncRenderContext, Boolean) |
Initializes a new instance of the ShadowMapRenderer class using the specified
render callback.
| |
ShadowMapRenderer(SceneNodeRenderer) |
Initializes a new instance of the ShadowMapRenderer class using the specified
scene node renderer.
|
Name | Description | |
---|---|---|
CanRender |
Determines whether this renderer can handle the specified scene node.
(Overrides SceneRendererCanRender(SceneNode, RenderContext).) | |
Dispose |
Releases all resources used by an instance of the SceneNodeRenderer class.
(Inherited from SceneNodeRenderer.) | |
Dispose(Boolean) |
Releases the unmanaged resources used by an instance of the SceneNodeRenderer
class and optionally releases the managed resources.
(Inherited from SceneRenderer.) | |
Equals | (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Render(SceneNode, RenderContext) |
Renders the specified scene node.
(Inherited from SceneNodeRenderer.) | |
Render(IListSceneNode, RenderContext) |
Renders the specified scene nodes.
(Inherited from SceneNodeRenderer.) | |
Render(IListSceneNode, RenderContext, RenderOrder) |
Renders the specified scene nodes.
(Inherited from SceneRenderer.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
IsDisposed |
Gets a value indicating whether this instance has been disposed of.
(Inherited from SceneNodeRenderer.) | |
Order |
Gets the draw order of this scene node renderer.
(Inherited from SceneNodeRenderer.) | |
RenderCallback |
Gets or sets the method which renders the scene into the shadow map.
| |
Renderers |
Gets the list of scene node renderers managed by this instance.
(Inherited from SceneRenderer.) |
The ShadowMapRenderer handles StandardShadows, CubeMapShadows, CascadedShadows, and CompositeShadows. Support for new shadow types can be implemented by creating a custom SceneNodeRenderer and adding it to the Renderers collection.
During rendering the renderer changes the render context: Depending on the shadow type "Default", "Omnidirectional", or "Directional" is set as the Technique.
The shadow maps are stored in the Shadow property of the LightNode.
Render Callback:
The shadow map renderer requires a RenderCallback method to render the scene.
The callback method needs to render the scene using the camera and the information given in
the RenderContext.
Render Target and Viewport:
This renderer changes the current render target of the graphics device because it uses the
graphics device to render the shadow maps. The render target and the viewport of the graphics
device are undefined after rendering.