docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ClearCubemap

    ClearCubemap(CommandBuffer, RenderTexture, Color, bool)

    Clear a cubemap render texture.

    Declaration
    public static void ClearCubemap(CommandBuffer cmd, RenderTexture renderTexture, Color clearColor, bool clearMips = false)
    Parameters
    Type Name Description
    CommandBuffer cmd

    CommandBuffer used for rendering commands.

    RenderTexture renderTexture

    Cubemap render texture that needs to be cleared.

    Color clearColor

    Color used for clearing.

    bool clearMips

    Set to true to clear the mip maps of the render texture.

    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)