Method DrawFullScreen
DrawFullScreen(CommandBuffer, Material, MaterialPropertyBlock, int)
Draws a full screen triangle.
Declaration
public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, MaterialPropertyBlock properties = null, int shaderPassId = 0)
Parameters
Type | Name | Description |
---|---|---|
Command |
commandBuffer | CommandBuffer used for rendering commands. |
Material | material | Material used on the full screen triangle. |
Material |
properties | Optional material property block for the provided material. |
int | shaderPassId | Index of the material pass. |
DrawFullScreen(CommandBuffer, Material, RenderTargetIdentifier, MaterialPropertyBlock, int)
Draws a full screen triangle.
Declaration
public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RenderTargetIdentifier colorBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
Parameters
Type | Name | Description |
---|---|---|
Command |
commandBuffer | CommandBuffer used for rendering commands. |
Material | material | Material used on the full screen triangle. |
Render |
colorBuffer | RenderTargetIdentifier of the color buffer that needs to be set before drawing the full screen triangle. |
Material |
properties | Optional material property block for the provided material. |
int | shaderPassId | Index of the material pass. |
DrawFullScreen(CommandBuffer, Material, RenderTargetIdentifier, RenderTargetIdentifier, MaterialPropertyBlock, int)
Draws a full screen triangle.
Declaration
public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RenderTargetIdentifier colorBuffer, RenderTargetIdentifier depthStencilBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
Parameters
Type | Name | Description |
---|---|---|
Command |
commandBuffer | CommandBuffer used for rendering commands. |
Material | material | Material used on the full screen triangle. |
Render |
colorBuffer | RenderTargetIdentifier of the color buffer that needs to be set before drawing the full screen triangle. |
Render |
depthStencilBuffer | RenderTargetIdentifier of the depth buffer that needs to be set before drawing the full screen triangle. |
Material |
properties | Optional material property block for the provided material. |
int | shaderPassId | Index of the material pass. |
DrawFullScreen(CommandBuffer, Material, RenderTargetIdentifier[], RenderTargetIdentifier, MaterialPropertyBlock, int)
Draws a full screen triangle.
Declaration
public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RenderTargetIdentifier[] colorBuffers, RenderTargetIdentifier depthStencilBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
Parameters
Type | Name | Description |
---|---|---|
Command |
commandBuffer | CommandBuffer used for rendering commands. |
Material | material | Material used on the full screen triangle. |
Render |
colorBuffers | RenderTargetIdentifier array of the color buffers that needs to be set before drawing the full screen triangle. |
Render |
depthStencilBuffer | RenderTargetIdentifier of the depth buffer that needs to be set before drawing the full screen triangle. |
Material |
properties | Optional material property block for the provided material. |
int | shaderPassId | Index of the material pass. |
DrawFullScreen(CommandBuffer, Material, RenderTargetIdentifier[], MaterialPropertyBlock, int)
Draws a full screen triangle.
Declaration
public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RenderTargetIdentifier[] colorBuffers, MaterialPropertyBlock properties = null, int shaderPassId = 0)
Parameters
Type | Name | Description |
---|---|---|
Command |
commandBuffer | CommandBuffer used for rendering commands. |
Material | material | Material used on the full screen triangle. |
Render |
colorBuffers | RenderTargetIdentifier array of the color buffers that needs to be set before drawing the full screen triangle. |
Material |
properties | Optional material property block for the provided material. |
int | shaderPassId | Index of the material pass. |