setValueM4 method
Implementation
setValueM4(gl, Matrix4 v, [WebGLTextures? textures]) {
var cache = this.cache;
var elements = v.elements;
if (elements == null) {
if (arraysEqual(cache, v)) return;
gl.uniformMatrix4fv(addr, false, v);
copyArray(cache, v);
} else {
if (arraysEqual(cache, elements)) {
return;
}
// TODO
// mat4array.set( elements );
gl.uniformMatrix4fv(addr, false, elements);
copyArray(cache, elements);
}
}