We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bbe521 commit a727fffCopy full SHA for a727fff
lib/src/internal/useUniforms.ts
@@ -56,6 +56,7 @@ export function useUniforms<U extends Uniforms>(uniforms: U) {
56
if (uniformLocation === -1) return -1;
57
58
if (typeof value === "number") return _gl.uniform1f(uniformLocation, value);
59
+ if (typeof value === "boolean") return _gl.uniform1i(uniformLocation, value ? 1 : 0);
60
61
if (value instanceof WebGLTexture) {
62
if (!textureUnits.has(name)) {
0 commit comments