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