Matrix Transpose | Shader Graph | 6.9.2
docs.unity3d.com
    Show / Hide Table of Contents

    Matrix Transpose

    Description

    Returns the transposed value of the matrix defined by input In. This can be seen as the operation of flipping the matrix over its diagonal. The result is that it switches the row and column indices of the matrix.

    Ports

    Name Direction Type Description
    In Input Dynamic Matrix Input value
    Out Output Dynamic Matrix Output value

    Generated Code Example

    The following example code represents one possible outcome of this node.

    void Unity_MatrixTranspose_float4x4(float4x4 In, out float4x4 Out)
    {
        Out = transpose(In);
    }
    
    In This Article
    • Description
    • Ports
    • Generated Code Example
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023