Class ShadowMapRenderer
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
Properties
RenderSystem
public RenderSystem RenderSystem { get; set; }
Property Value
RenderViewsWithShadows
public HashSet<RenderView> RenderViewsWithShadows { get; }
Property Value
Renderers
[DataMember]
public List<ILightShadowMapRenderer> Renderers { get; }
Property Value
ShadowMapRenderStages
TODO
public IReadOnlyList<RenderStage> ShadowMapRenderStages { get; }
Property Value
Methods
Collect(RenderContext, Dictionary<RenderView, RenderViewLightData>)
public void Collect(RenderContext context, Dictionary<RenderView, ForwardLightingRenderFeature.RenderViewLightData> renderViewLightDatas)
Parameters
context
RenderContextrenderViewLightDatas
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
FindShadowMap(RenderView, RenderLight)
public LightShadowMapTexture FindShadowMap(RenderView renderView, RenderLight light)
Parameters
renderView
RenderViewlight
RenderLight
Returns
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