setValueM2Array method

dynamic setValueM2Array(
  1. dynamic gl,
  2. dynamic v,
  3. dynamic textures
)

Implementation

setValueM2Array(gl, v, textures) {
  var data = flatten(v, size, 4);

  gl.uniformMatrix2fv(addr, false, data);
}