setValueT1 method
Implementation
setValueT1(gl, v, WebGLTextures textures) {
var cache = this.cache;
var unit = textures.allocateTextureUnit();
if (cache[0] != unit) {
gl.uniform1i(addr, unit);
cache[0] = unit;
}
textures.setTexture2D(v ?? emptyTexture, unit);
}