Class LightRenderPath
Logical element that groups every Drawable component which shares the same features. It establishes a drawing order, where every component from the same layer is rendered within the same batch.
Inherited Members
Namespace: Evergine.Framework.Graphics
Assembly: Evergine.Framework.dll
Syntax
public abstract class LightRenderPath : RenderPath
Constructors
LightRenderPath(RenderManager)
Initializes a new instance of the LightRenderPath class.
Declaration
public LightRenderPath(RenderManager renderManager)
Parameters
Type | Name | Description |
---|---|---|
RenderManager | renderManager | The rendering manager. |
Methods
CreateNewLightDrawContext(RenderPipeline, Light)
Creates a new draw context.
Declaration
public virtual LightDrawContext CreateNewLightDrawContext(RenderPipeline renderPipeline, Light light)
Parameters
Type | Name | Description |
---|---|---|
RenderPipeline | renderPipeline | The render pipeline. |
Light | light | The light source. |
Returns
Type | Description |
---|---|
LightDrawContext | The render context. |
Render(DrawContext, CommandBuffer)
Renders all batches collected by the specified DrawContext.
Declaration
public override void Render(DrawContext drawContext, CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
DrawContext | drawContext | The DrawContext. |
CommandBuffer | commandBuffer | The command buffer used to render this context. |
Overrides
Render(LightDrawContext, CommandBuffer)
Renders this scene.
Declaration
protected abstract void Render(LightDrawContext drawContext, CommandBuffer commandBuffer)
Parameters
Type | Name | Description |
---|---|---|
LightDrawContext | drawContext | The context to draw. |
CommandBuffer | commandBuffer | The command buffer used to render this context. |