Method ClearRenderTarget
ClearRenderTarget(CommandBuffer, ClearFlag, Color)
Clear the currently bound render texture.
Declaration
public static void ClearRenderTarget(CommandBuffer cmd, ClearFlag clearFlag, Color clearColor)
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | CommandBuffer used for rendering commands. |
ClearFlag | clearFlag | Specify how the render texture should be cleared. |
Color | clearColor | Specify with which color the render texture should be cleared. |