docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Declaration
    public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RTHandle colorBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
    Parameters
    Type Name Description
    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.

    Declaration
    public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RTHandle colorBuffer, RTHandle depthStencilBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
    Parameters
    Type Name Description
    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.

    Declaration
    public static void DrawFullScreen(CommandBuffer commandBuffer, Material material, RenderTargetIdentifier[] colorBuffers, RTHandle depthStencilBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
    Parameters
    Type Name Description
    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, CubemapFace, MaterialPropertyBlock, int, int)

    Draw a full screen triangle with a material. This will render into the destination texture with the specified viewport.

    Declaration
    public static void DrawFullScreen(CommandBuffer commandBuffer, Rect viewport, Material material, RenderTargetIdentifier destination, CubemapFace cubemapFace, MaterialPropertyBlock properties = null, int shaderPassId = 0, int depthSlice = -1)
    Parameters
    Type Name Description
    CommandBuffer commandBuffer

    Command Buffer used for rendering.

    Rect viewport

    Destination viewport.

    Material material

    Material used for rendering.

    RenderTargetIdentifier destination

    Destination RenderTargetIdentifier.

    CubemapFace cubemapFace

    Optional cubemap face to render to.

    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, MaterialPropertyBlock, int, int)

    Draw a full screen triangle with a material. This will render into the destination texture with the specified viewport.

    Declaration
    public static void DrawFullScreen(CommandBuffer commandBuffer, Rect viewport, Material material, RenderTargetIdentifier destination, MaterialPropertyBlock properties = null, int shaderPassId = 0, int depthSlice = -1)
    Parameters
    Type Name Description
    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.

    Declaration
    public static void DrawFullScreen(CommandBuffer commandBuffer, Rect viewport, Material material, RenderTargetIdentifier destination, RTHandle depthStencilBuffer, MaterialPropertyBlock properties = null, int shaderPassId = 0)
    Parameters
    Type Name Description
    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.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)