Class LightPass
Lighting rendering service. Handles dynamic lights diffuse and specular color calculations.
Assembly: FlaxEngine.dll
File: Engine/Renderer/LightPass.h
Syntax
public class LightPass : public RendererPass
Methods
Dispose()
Cleanup service data.
Declaration
public virtual void Dispose() override
Overrides
Init()
Initialize service.
Declaration
public virtual bool Init() override
Returns
bool
|
Overrides
RenderLights(RenderContextBatch& renderContextBatch, GPUTextureView* lightBuffer)
Performs the lighting rendering for the input task.
Declaration
public void RenderLights(RenderContextBatch& renderContextBatch, GPUTextureView* lightBuffer)
Parameters
RenderContextBatch
renderContextBatch
The rendering context batch. |
GPUTextureView
lightBuffer
The light accumulation buffer (input and output). |
SetupLights(RenderContext& renderContext, RenderContextBatch& renderContextBatch)
Setups the lights rendering for batched scene drawing.
Declaration
public void SetupLights(RenderContext& renderContext, RenderContextBatch& renderContextBatch)
Parameters
RenderContext
renderContext
|
RenderContextBatch
renderContextBatch
|
setupResources()
Declaration
protected virtual bool setupResources() override
Returns
bool
|
Overrides
ToString()
Gets the string representation of this object.
Declaration
public virtual String ToString() const override
Returns
String
|