docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Matrix 4x4 节点

    描述

    在着色器中定义一个常量矩阵 4x4 值。

    端口

    名称 方向 类型 绑定 描述
    Out 输出 Matrix 4 无 输出值

    控件

    名称 类型 选项 描述
    Matrix 4x4 设置输出值

    生成的代码示例

    以下示例代码表示此节点的一种可能结果。

    float4x4 _Matrix4x4 = float4x4(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
    
    
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)