RenderContextReferenceNode Property |
Namespace: DigitalRune.Graphics
The purpose of the reference node depends on the current render operation. In most cases it will be . Here are some examples where a reference node is useful:
Shadow map rendering: When an object is rendered into the shadow map, the render context stores the currently rendered object in SceneNode. ReferenceNode contains the LightNode which owns the shadow map. This allows effect parameter bindings to find information about the light and the shadow.
Render-to-texture: When an object is rendered into a texture of an RenderToTextureNode, the render context stores the currently rendered object in SceneNode. ReferenceNode contains the RenderToTextureNode.