LightQuery Class |
Namespace: DigitalRune.Graphics.SceneGraph
The LightQuery type exposes the following members.
Name | Description | |
---|---|---|
LightQuery |
Initializes a new instance of the LightQuery 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 | |
---|---|---|
AmbientLights |
Gets the ambient lights.
| |
DirectionalLights |
Gets the directional lights.
| |
ImageBasedLights |
Gets the image-based lights.
| |
OtherLights |
Gets other lights that did not fit into any of the predefined categories
(AmbientLights, DirectionalLights, etc.).
| |
PointLights |
Gets the point lights.
| |
ProjectorLights |
Gets the projector lights.
| |
ReferenceNode |
Gets the reference node.
| |
Spotlights |
Gets the spotlights.
|
A LightQuery can be executed against a scene by calling QueryT(SceneNode, RenderContext). The query can be used to get all LightNodes that affect a certain reference node in the scene. The reference node is typically the scene node that is currently being rendered.
The light nodes are grouped by type (ambient lights, directional lights, etc.). The lights within each group are usually sorted descending by the approximate light contribution on the reference node. That means, lights that have a strong influence on the reference node are listed before lights that have a weak influence.