Version: 2022.3
言語: 日本語
public static void SetGlobalMatrix (string name, Matrix4x4 value);
public static void SetGlobalMatrix (int nameID, Matrix4x4 value);

パラメーター

nameID Shader.PropertyToID によって検索されるプロパティーの nameID
name プロパティーの名前

説明

すべてのシェーダーに適用されるグローバルな Matrix プロパティーを設定します

Global properties are used if a shader needs them but the material does not have them defined (for example, if the shader does not expose them in Properties block).

関連項目: SetGlobalColorSetGlobalFloat; Material クラス、ShaderLab ドキュメント.