Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    LightDirectionalShadowMap Class

    Namespace: Stride.Rendering.Lights
    Assembly: Stride.Rendering.dll

    A directional shadow map.

    System.Object → LightShadowMap → LightDirectionalShadowMap
    Derived from LightDirectionalShadowMap:

    [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()
    | Improve this Doc View Source

    Constructors


    LightDirectionalShadowMap()

    Initializes a new instance of the LightShadowMap class.

    public LightDirectionalShadowMap()
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Methods


    GetCascadeCount()

    public override int GetCascadeCount()
    Returns
    Type Description
    System.Int32
    Overrides
    LightShadowMap.GetCascadeCount()

    Inherited Members

    LightShadowMap.Enabled
    LightShadowMap.Filter
    LightShadowMap.Size
    LightShadowMap.BiasParameters
    LightShadowMap.Debug

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation