setValueT1Array method

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

Implementation

void setValueT1Array(RenderingContext gl, v, [WebGLTextures? textures]) {
  final n = v.length;

  final units = allocTexUnits(textures, n);

  // print("setValueT1Array n: ${n} ");
  gl.uniform1iv(addr, units);

  for (int i = 0; i != n; ++i) {
    textures?.setTexture2D(v[i] ?? emptyTexture, units[i]);
  }
}