docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BlitCubeTexture2D

    BlitCubeTexture2D(CommandBuffer, Vector4, Texture, bool, int)

    Blit and project Cube texture into a 2D texture in the atlas.

    Declaration
    public virtual void BlitCubeTexture2D(CommandBuffer cmd, Vector4 scaleOffset, Texture texture, bool blitMips = true, int overrideInstanceID = -1)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Target command buffer for graphics commands.

    Vector4 scaleOffset

    Destination scale (.xy) and offset (.zw)

    Texture texture

    Source Texture

    bool blitMips

    Blit mip maps.

    int overrideInstanceID

    Override texture instance ID.

    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)