Shader.GetGlobalMatrix

Switch to Manual
public static Matrix4x4 GetGlobalMatrix (string name);
public static Matrix4x4 GetGlobalMatrix (int nameID);

Parameters

nameID通过 Shader.PropertyToID 检索的属性的名称 ID。
name属性的名称。

Description

获取先前用 SetGlobalMatrix 为所有着色器设置的全局矩阵属性。