Esempio n. 1
0
 public static void SetUniform(this ShaderProgram s, string name, Matrix4x4 m, bool transpose = false)
 {
     m.CopyTo(matrix);
     s.SetUniformMatrix4(name, 1, transpose, matrix);
 }
Esempio n. 2
0
 public static void SetUniform(this ShaderProgram s, int location, Matrix4x4 m, bool transpose = false)
 {
     m.CopyTo(matrix);
     s.SetUniformMatrix4(location, 1, transpose, matrix);
 }