setValueM4 method

void setValueM4(
  1. RenderingContext gl,
  2. Matrix4 v, [
  3. WebGLTextures? textures
])

Implementation

void setValueM4(RenderingContext gl, Matrix4 v, [WebGLTextures? textures]) {
  final cache = this.cache;
  final elements = v.storage;

  if (arraysEqual(cache, elements)) {
    return;
  }

  gl.uniformMatrix4fv(addr, false, elements);
  copyArray(cache, elements);
}