Method DrawFullScreen
DrawFullScreen(CommandBuffer, Material, RTHandle, MaterialPropertyBlock, int)
Draw a full screen triangle with a material. This will automatically set the viewport of the destination RTHandle based on the current camera parameters.
선언
public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RTHandle colorBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
파라미터
타입 | 이름 | 설명 |
---|---|---|
CommandBuffer | commandBuffer | Command Buffer used for rendering. |
Material | material | Material used for rendering. |
RTHandle | colorBuffer | Destination RTHandle. |
MaterialPropertyBlock | properties | Optional material property block. |
int | shaderPassId | Optional pass index to use. |
DrawFullScreen(CommandBuffer, Material, RTHandle, RTHandle, MaterialPropertyBlock, int)
Draw a full screen triangle with a material. This will automatically set the viewport of the destination RTHandle based on the current camera parameters.
선언
public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RTHandle colorBuffer, RTHandle depthStencilBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
파라미터
타입 | 이름 | 설명 |
---|---|---|
CommandBuffer | commandBuffer | Command Buffer used for rendering. |
Material | material | Material used for rendering. |
RTHandle | colorBuffer | Destination RTHandle. |
RTHandle | depthStencilBuffer | Destination Depth Stencil RTHandle. |
MaterialPropertyBlock | properties | Optional material property block. |
int | shaderPassId | Optional pass index to use. |
DrawFullScreen(CommandBuffer, Material, RenderTargetIdentifier[], RTHandle, MaterialPropertyBlock, int)
Draw a full screen triangle with a material. This will automatically set the viewport of the destination RTHandle based on the current camera parameters.
선언
public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RenderTargetIdentifier[] colorBuffers, RTHandle depthStencilBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
파라미터
타입 | 이름 | 설명 |
---|---|---|
CommandBuffer | commandBuffer | Command Buffer used for rendering. |
Material | material | Material used for rendering. |
RenderTargetIdentifier[] | colorBuffers | Array of RenderTargetIdentifier for multiple render target rendering. |
RTHandle | depthStencilBuffer | Destination Depth Stencil RTHandle. |
MaterialPropertyBlock | properties | Optional material property block. |
int | shaderPassId | Optional pass index to use. |
DrawFullScreen(CommandBuffer, Rect, Material, RenderTargetIdentifier, MaterialPropertyBlock, int, int)
Draw a full screen triangle with a material. This will render into the destination texture with the specified viewport.
선언
public static void DrawFullScreen(CommandBuffer commandBuffer, Rect viewport, Material material, RenderTargetIdentifier destination, MaterialPropertyBlock properties = null, int shaderPassId = 0, int depthSlice = -1)
파라미터
타입 | 이름 | 설명 |
---|---|---|
CommandBuffer | commandBuffer | Command Buffer used for rendering. |
Rect | viewport | Destination viewport. |
Material | material | Material used for rendering. |
RenderTargetIdentifier | destination | Destination RenderTargetIdentifier. |
MaterialPropertyBlock | properties | Optional Material Property block. |
int | shaderPassId | Optional pass index to use. |
int | depthSlice | Optional depth slice to render to. |
DrawFullScreen(CommandBuffer, Rect, Material, RenderTargetIdentifier, RTHandle, MaterialPropertyBlock, int)
Draw a full screen triangle with a material. This will render into the destination texture with the specified viewport.
선언
public static void DrawFullScreen(CommandBuffer commandBuffer, Rect viewport, Material material, RenderTargetIdentifier destination, RTHandle depthStencilBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
파라미터
타입 | 이름 | 설명 |
---|---|---|
CommandBuffer | commandBuffer | Command Buffer used for rendering. |
Rect | viewport | Destination viewport. |
Material | material | Material used for rendering. |
RenderTargetIdentifier | destination | Destination RenderTargetIdentifier. |
RTHandle | depthStencilBuffer | Destination Depth Stencil RTHandle. |
MaterialPropertyBlock | properties | Optional Material Property block. |
int | shaderPassId | Optional pass index to use. |