setValueT6 method

dynamic setValueT6(
  1. dynamic gl,
  2. dynamic v, [
  3. WebGLTextures? textures
])

Implementation

setValueT6(gl, v, [WebGLTextures? textures]) {
  var cache = this.cache;
  var unit = textures!.allocateTextureUnit();

  if (cache[0] != unit) {
    gl.uniform1i(addr, unit);
    cache[0] = unit;
  }

  textures.setTextureCube(v ?? emptyCubeTexture, unit);
}