Shadow Class |
Namespace: DigitalRune.Graphics
The Shadow type exposes the following members.
Name | Description | |
---|---|---|
Clone |
Creates a new Shadow that is a clone (deep copy) of the current instance.
| |
CloneCore |
Makes the instance a clone (deep copy) of the specified Shadow.
| |
CreateInstanceCore |
When implemented in a derived class, creates a new instance of the
Shadow derived class.
| |
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.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Prefer16Bit |
Gets or sets a value indicating whether the shadow map should use a 16-bit format to store
depth.
| |
PreferredSize |
Gets or sets the size of the desired size of the shadow map in texels.
| |
ShadowMap |
Gets or sets the shadow map.
| |
ShadowMask |
Gets or sets the shadow mask.
| |
ShadowMaskChannel |
Gets or sets the shadow mask channel.
|
This class defines the desired shadow map format. During rendering it stores a reference to the ShadowMap and ShadowMask.
Cloning:
Shadows are cloneable. Clone creates a deep copy of the current
shadow - unless documented otherwise (see derived classes). The shadow settings, like
Prefer16Bit, PreferredSize, etc. are duplicated - but the actual
shadow maps or shadow masks are not copied, since these resources cannot be shared between
different shadow casting light nodes and they are usually updated in each frame anyways.