setValueT3D1 method

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

Implementation

void setValueT3D1(RenderingContext gl,Texture? v, [WebGLTextures? textures]) {
  final cache = this.cache;
  final unit = textures!.allocateTextureUnit();

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

  textures.setTexture3D(v ?? empty3dTexture, unit);
}