ScriptRuntime.MaterialInstance.SetGlobalValue C# (CSharp) Method

SetGlobalValue() public static method

设置着色器中的全局矩阵参数,比如摄像机变换矩阵
public static SetGlobalValue ( GlobalShaderMatrix index, Matrix44 &value ) : void
index GlobalShaderMatrix 着色器中的全局矩阵参数类型
value Matrix44 要设置的矩阵的值
return void
        public static void SetGlobalValue(GlobalShaderMatrix index,ref Matrix44 value)
        {
            ICall_Material_SetGlobalMatrix(index, ref value);
        }

Same methods

MaterialInstance::SetGlobalValue ( GlobalShaderVector index, System.Vector4 &value ) : void