Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ShadowMapRenderer Class

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

    Handles rendering of shadow map casters.

    System.Object → ShadowMapRenderer
    Derived from ShadowMapRenderer:

    [DataContract(DefaultMemberMode = DataMemberMode.Never)]
    public class ShadowMapRenderer : IShadowMapRenderer
    Name Description
    Constructors
    ShadowMapRenderer()
    Fields
    ProfilingKey
    Properties
    Renderers
    RenderSystem
    RenderViewsWithShadows
    ShadowMapRenderStages
    Methods
    Collect(RenderContext, Dictionary<RenderView, ForwardLightingRenderFeature.RenderViewLightData>)
    Draw(RenderDrawContext)
    FindRenderer(IDirectLight)
    FindShadowMap(RenderView, RenderLight)
    Flush(RenderDrawContext)
    PrepareAtlasAsRenderTargets(CommandList)
    PrepareAtlasAsShaderResourceViews(CommandList)
    | Improve this Doc View Source

    Constructors


    ShadowMapRenderer()

    public ShadowMapRenderer()
    | Improve this Doc View Source

    Fields


    ProfilingKey

    public static readonly ProfilingKey ProfilingKey
    Field Value
    Type Description
    ProfilingKey
    | Improve this Doc View Source

    Properties


    Renderers

    [DataMember]
    public List<ILightShadowMapRenderer> Renderers { get; }
    Property Value
    Type Description
    System.Collections.Generic.List<ILightShadowMapRenderer>

    RenderSystem

    public RenderSystem RenderSystem { get; set; }
    Property Value
    Type Description
    RenderSystem

    RenderViewsWithShadows

    public HashSet<RenderView> RenderViewsWithShadows { get; }
    Property Value
    Type Description
    System.Collections.Generic.HashSet<RenderView>

    ShadowMapRenderStages

    public IReadOnlyList<RenderStage> ShadowMapRenderStages { get; }
    Property Value
    Type Description
    System.Collections.Generic.IReadOnlyList<RenderStage>
    | Improve this Doc View Source

    Methods


    Collect(RenderContext, Dictionary<RenderView, ForwardLightingRenderFeature.RenderViewLightData>)

    public void Collect(RenderContext context, Dictionary<RenderView, ForwardLightingRenderFeature.RenderViewLightData> renderViewLightDatas)
    Parameters
    Type Name Description
    RenderContext context
    System.Collections.Generic.Dictionary<RenderView, ForwardLightingRenderFeature.RenderViewLightData> renderViewLightDatas

    Draw(RenderDrawContext)

    public void Draw(RenderDrawContext drawContext)
    Parameters
    Type Name Description
    RenderDrawContext drawContext

    FindRenderer(IDirectLight)

    public ILightShadowMapRenderer FindRenderer(IDirectLight light)
    Parameters
    Type Name Description
    IDirectLight light
    Returns
    Type Description
    ILightShadowMapRenderer

    FindShadowMap(RenderView, RenderLight)

    public LightShadowMapTexture FindShadowMap(RenderView renderView, RenderLight light)
    Parameters
    Type Name Description
    RenderView renderView
    RenderLight light
    Returns
    Type Description
    LightShadowMapTexture

    Flush(RenderDrawContext)

    public void Flush(RenderDrawContext context)
    Parameters
    Type Name Description
    RenderDrawContext context

    PrepareAtlasAsRenderTargets(CommandList)

    public void PrepareAtlasAsRenderTargets(CommandList commandList)
    Parameters
    Type Name Description
    CommandList commandList

    PrepareAtlasAsShaderResourceViews(CommandList)

    public void PrepareAtlasAsShaderResourceViews(CommandList commandList)
    Parameters
    Type Name Description
    CommandList commandList

    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