Class MotionBlurPass
Anti aliasing rendering service
Assembly: FlaxEngine.dll
File: Engine/Renderer/MotionBlurPass.h
Syntax
public class MotionBlurPass : public RendererPass
Constructors
MotionBlurPass()
Init
Declaration
public MotionBlurPass()
Methods
Dispose()
Cleanup service data.
Declaration
public virtual void Dispose() override
Overrides
Init()
Initialize service.
Declaration
public virtual bool Init() override
Returns
|
bool
|
Overrides
Render(RenderContext& renderContext, GPUTexture*& frame, GPUTexture*& tmp)
Renders the motion blur. Swaps the input with output if rendering is performed. Does nothing if rendering is not performed.
Declaration
public void Render(RenderContext& renderContext, GPUTexture*& frame, GPUTexture*& tmp)
Parameters
|
RenderContext
renderContext
The rendering context. |
|
GPUTexture
frame
Input and output frame (leave unchanged when not using this effect). |
|
GPUTexture
tmp
Temporary frame (the same format as frame) |
RenderDebug(RenderContext& renderContext, GPUTextureView* frame)
Renders the motion vectors debug view.
Declaration
public void RenderDebug(RenderContext& renderContext, GPUTextureView* frame)
Parameters
|
RenderContext
renderContext
The rendering context. |
|
GPUTextureView
frame
The source frame. |
RenderMotionVectors(RenderContext& renderContext)
Renders the motion vectors texture for the current task. Skips if motion blur is disabled or no need to render motion vectors.
Declaration
public void RenderMotionVectors(RenderContext& renderContext)
Parameters
|
RenderContext
renderContext
The rendering context. |
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
|