Table of Contents

Class ShadowMapRenderer

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

Handles rendering of shadow map casters.

[DataContract(DefaultMemberMode = DataMemberMode.Never)]
public class ShadowMapRenderer : IShadowMapRenderer
Inheritance
ShadowMapRenderer
Implements

Constructors

ShadowMapRenderer()

public ShadowMapRenderer()

Fields

ProfilingKey

public static readonly ProfilingKey ProfilingKey

Field Value

ProfilingKey

Properties

RenderSystem

public RenderSystem RenderSystem { get; set; }

Property Value

RenderSystem

RenderViewsWithShadows

public HashSet<RenderView> RenderViewsWithShadows { get; }

Property Value

HashSet<RenderView>

Renderers

[DataMember]
public List<ILightShadowMapRenderer> Renderers { get; }

Property Value

List<ILightShadowMapRenderer>

ShadowMapRenderStages

TODO

public IReadOnlyList<RenderStage> ShadowMapRenderStages { get; }

Property Value

IReadOnlyList<RenderStage>

Methods

Collect(RenderContext, Dictionary<RenderView, RenderViewLightData>)

public void Collect(RenderContext context, Dictionary<RenderView, ForwardLightingRenderFeature.RenderViewLightData> renderViewLightDatas)

Parameters

context RenderContext
renderViewLightDatas Dictionary<RenderView, ForwardLightingRenderFeature.RenderViewLightData>

Draw(RenderDrawContext)

public void Draw(RenderDrawContext drawContext)

Parameters

drawContext RenderDrawContext

FindRenderer(IDirectLight)

public ILightShadowMapRenderer FindRenderer(IDirectLight light)

Parameters

light IDirectLight

Returns

ILightShadowMapRenderer

FindShadowMap(RenderView, RenderLight)

public LightShadowMapTexture FindShadowMap(RenderView renderView, RenderLight light)

Parameters

renderView RenderView
light RenderLight

Returns

LightShadowMapTexture

Flush(RenderDrawContext)

public void Flush(RenderDrawContext context)

Parameters

context RenderDrawContext

PrepareAtlasAsRenderTargets(CommandList)

public void PrepareAtlasAsRenderTargets(CommandList commandList)

Parameters

commandList CommandList

PrepareAtlasAsShaderResourceViews(CommandList)

public void PrepareAtlasAsShaderResourceViews(CommandList commandList)

Parameters

commandList CommandList