docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method BlitCubeToOctahedral2DQuadWithPadding

    BlitCubeToOctahedral2DQuadWithPadding(CommandBuffer, Texture, Vector2, Vector4, int, bool, int, Vector4?)

    Blit a cube texture into 2d texture as octahedral quad with padding. (projection)

    Declaration
    public static void BlitCubeToOctahedral2DQuadWithPadding(CommandBuffer cmd, Texture source, Vector2 textureSize, Vector4 scaleBiasRT, int mipLevelTex, bool bilinear, int paddingInPixels, Vector4? decodeInstructions = null)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer used for rendering.

    Texture source

    Source cube texture.

    Vector2 textureSize

    Source texture size.

    Vector4 scaleBiasRT

    Scale and bias for the output texture.

    int mipLevelTex

    Mip level to sample.

    bool bilinear

    Enable bilinear filtering.

    int paddingInPixels

    Padding in pixels.

    Vector4? decodeInstructions
    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)