setTexture3D method

void setTexture3D(
  1. Texture texture,
  2. int slot
)

Implementation

void setTexture3D(Texture texture, int slot) {
  var textureProperties = properties.get(texture);

  if (texture.version > 0 &&
      textureProperties["__version"] != texture.version) {
    uploadTexture(textureProperties, texture, slot);
    return;
  }

  state.activeTexture(gl.TEXTURE0 + slot);
  state.bindTexture(gl.TEXTURE_3D, textureProperties["__webglTexture"]);
}