LightDirectionalShadowMap Class
Namespace: Stride.Rendering.LightsAssembly: Stride.Rendering.dll
A directional shadow map.
[DataContract("LightDirectionalShadowMap")]
[Display("Directional ShadowMap", null)]
public class LightDirectionalShadowMap : LightShadowMap, ILightShadow
Name | Description | |
---|---|---|
Constructors | ||
LightDirectionalShadowMap() | Initializes a new instance of the LightShadowMap class. |
|
Properties | ||
CascadeCount | Gets or Sets the number of cascades for this shadow (valid only for directional lights) |
|
ComputeTransmittance | Specifies if transmittance should be computed (necessary for hair and skin rendering). |
|
DepthRange | Gets or sets the depth range mode. |
|
PartitionMode | Gets or sets the partition mode. |
|
StabilizationMode | Gets or Sets the stabilization mode of the shadow map |
|
Methods | ||
GetCascadeCount() |
Constructors
LightDirectionalShadowMap()
Initializes a new instance of the LightShadowMap class.
public LightDirectionalShadowMap()
Properties
CascadeCount
Gets or Sets the number of cascades for this shadow (valid only for directional lights)
[DataMember(50)]
public LightShadowMapCascadeCount CascadeCount { get; set; }
Property Value
Type | Description |
---|---|
LightShadowMapCascadeCount | The number of cascades for this shadow. |
ComputeTransmittance
Specifies if transmittance should be computed (necessary for hair and skin rendering).
[DataMember(100)]
public bool ComputeTransmittance { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DepthRange
Gets or sets the depth range mode.
[DataMember(80)]
[Display("Depth Range", null, Expand = ExpandRule.Always)]
public LightDirectionalShadowMap.DepthRangeParameters DepthRange { get; }
Property Value
Type | Description |
---|---|
LightDirectionalShadowMap.DepthRangeParameters | The depth range mode. |
PartitionMode
Gets or sets the partition mode.
[DataMember(90)]
public LightDirectionalShadowMap.PartitionModeBase PartitionMode { get; set; }
Property Value
Type | Description |
---|---|
LightDirectionalShadowMap.PartitionModeBase | The partition mode. |
StabilizationMode
Gets or Sets the stabilization mode of the shadow map
[DataMember(60)]
public LightShadowMapStabilizationMode StabilizationMode { get; set; }
Property Value
Type | Description |
---|---|
LightShadowMapStabilizationMode |
Methods
GetCascadeCount()
public override int GetCascadeCount()
Returns
Type | Description |
---|---|
System.Int32 |