setValueM3 method
Implementation
void setValueM3(RenderingContext gl, Matrix3? v, [WebGLTextures? textures]) {
final cache = this.cache;
final elements = v?.storage;
if (elements == null) {
if (arraysEqual(cache, v)) return;
gl.uniformMatrix3fv(addr, false, elements!);
copyArray(cache, v);
}
else {
if (arraysEqual(cache, elements)) {
return;
}
gl.uniformMatrix3fv(addr, false, elements);
copyArray(cache, elements);
}
}