docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor CopyDepthPass

    CopyDepthPass(RenderPassEvent, Material, bool, bool, bool)

    Creates a new CopyDepthPass instance.

    Declaration
    public CopyDepthPass(RenderPassEvent evt, Material copyDepthMaterial, bool shouldClear = false, bool copyToDepth = false, bool copyResolvedDepth = false)
    Parameters
    Type Name Description
    RenderPassEvent evt

    The RenderPassEvent to use.

    Material copyDepthMaterial

    The Material to use for copying the depth.

    bool shouldClear

    Controls whether it should do a clear before copying the depth.

    bool copyToDepth

    Controls whether it should do a copy to a depth format target.

    bool copyResolvedDepth

    Set to true if the source depth is MSAA resolved.

    See Also
    RenderPassEvent
    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)