Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    LightShadowMapTexture Class

    Namespace: Stride.Rendering.Shadows
    Assembly: Stride.Rendering.dll

    An allocated shadow map texture associated to a light.

    System.Object → LightShadowMapTexture
    Derived from LightShadowMapTexture:

    public class LightShadowMapTexture
    Name Description
    Fields
    MaxRectangles
    Renderer
    ShaderData
    Properties
    Atlas
    CascadeCount
    CurrentMaxDistance
    CurrentMinDistance
    FilterType
    Light
    RenderLight
    RenderView
    Shadow
    ShadowType
    Size
    TextureId
    Methods
    GetRectangle(Int32)
    Initialize(RenderView, RenderLight, IDirectLight, LightShadowMap, Int32, ILightShadowMapRenderer)
    SetRectangle(Int32, Rectangle)
    | Improve this Doc View Source

    Fields


    MaxRectangles

    public const int MaxRectangles = 6
    Field Value
    Type Description
    System.Int32

    Renderer

    public ILightShadowMapRenderer Renderer
    Field Value
    Type Description
    ILightShadowMapRenderer

    ShaderData

    public ILightShadowMapShaderData ShaderData
    Field Value
    Type Description
    ILightShadowMapShaderData
    | Improve this Doc View Source

    Properties


    Atlas

    public ShadowMapAtlasTexture Atlas { get; }
    Property Value
    Type Description
    ShadowMapAtlasTexture

    CascadeCount

    public int CascadeCount { get; set; }
    Property Value
    Type Description
    System.Int32

    CurrentMaxDistance

    public float CurrentMaxDistance { get; set; }
    Property Value
    Type Description
    System.Single

    CurrentMinDistance

    public float CurrentMinDistance { get; set; }
    Property Value
    Type Description
    System.Single

    FilterType

    public Type FilterType { get; }
    Property Value
    Type Description
    System.Type

    Light

    public IDirectLight Light { get; }
    Property Value
    Type Description
    IDirectLight

    RenderLight

    public RenderLight RenderLight { get; }
    Property Value
    Type Description
    RenderLight

    RenderView

    public RenderView RenderView { get; }
    Property Value
    Type Description
    RenderView

    Shadow

    public LightShadowMap Shadow { get; }
    Property Value
    Type Description
    LightShadowMap

    ShadowType

    public LightShadowType ShadowType { get; }
    Property Value
    Type Description
    LightShadowType

    Size

    public int Size { get; }
    Property Value
    Type Description
    System.Int32

    TextureId

    public byte TextureId { get; }
    Property Value
    Type Description
    System.Byte
    | Improve this Doc View Source

    Methods


    GetRectangle(Int32)

    public Rectangle GetRectangle(int i)
    Parameters
    Type Name Description
    System.Int32 i
    Returns
    Type Description
    Rectangle

    Initialize(RenderView, RenderLight, IDirectLight, LightShadowMap, Int32, ILightShadowMapRenderer)

    public void Initialize(RenderView renderView, RenderLight renderLight, IDirectLight light, LightShadowMap shadowMap, int size, ILightShadowMapRenderer renderer)
    Parameters
    Type Name Description
    RenderView renderView
    RenderLight renderLight
    IDirectLight light
    LightShadowMap shadowMap
    System.Int32 size
    ILightShadowMapRenderer renderer

    SetRectangle(Int32, Rectangle)

    public void SetRectangle(int i, Rectangle value)
    Parameters
    Type Name Description
    System.Int32 i
    Rectangle value

    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