setValueV1i method
Implementation
setValueV1i(gl, v, [WebGLTextures? textures]) {
var cache = this.cache;
if (cache[0] == v) return;
if (v is bool) {
if (v) {
gl.uniform1i(addr, 1);
} else {
gl.uniform1i(addr, 0);
}
} else {
gl.uniform1i(addr, v.toInt());
}
cache[0] = v;
}