UnityEngine.Shader.SetGlobalMatrix C# (CSharp) Method

SetGlobalMatrix() public static method

public static SetGlobalMatrix ( string propertyName, Matrix4x4 mat ) : void
propertyName string
mat Matrix4x4
return void
		public static void SetGlobalMatrix(string propertyName, Matrix4x4 mat){}
		private static void INTERNAL_CALL_SetGlobalMatrix(string propertyName, ref Matrix4x4 mat){}

Same methods

Shader::SetGlobalMatrix ( int nameID, Matrix4x4 mat ) : void

Usage Example

Esempio n. 1
0
 /// <summary>
 ///   <para>Sets a global matrix property for all shaders.</para>
 /// </summary>
 /// <param name="propertyName"></param>
 /// <param name="mat"></param>
 /// <param name="nameID"></param>
 public static void SetGlobalMatrix(string propertyName, Matrix4x4 mat)
 {
     Shader.SetGlobalMatrix(Shader.PropertyToID(propertyName), mat);
 }
All Usage Examples Of UnityEngine.Shader::SetGlobalMatrix