ShadowCasterQuery Class |
Namespace: DigitalRune.Graphics.SceneGraph
The ShadowCasterQuery type exposes the following members.
Name | Description | |
---|---|---|
ShadowCasterQuery |
Initializes a new instance of the ShadowCasterQuery class.
|
Name | Description | |
---|---|---|
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.) | |
Reset |
Resets this query.
| |
Set |
Sets the query result.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
ReferenceNode |
Gets the reference node.
| |
ShadowCasters |
Gets the scene nodes that cast shadows.
|
A ShadowCasterQuery can be executed against a scene by calling QueryT(SceneNode, RenderContext). The query can be used to get all shadow casters in a scene that touch a certain reference node (usually the light node).
A scene node casts a shadow if CastsShadows is set. If the reference node of the query or the ReferenceNode in the RenderContext is a LightNode with a DirectionalLight, then the query also checks the IsShadowCasterCulled flag.
Terrain nodes:
TerrainNode are special. They only cast directional light shadows and are
ignored for other light types.