Exemplo 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);
 }
Exemplo 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);
 }