Skip to content

Commit

Permalink
fix: 🐛 Fix issue with setting 0 or false values (#1766)
Browse files Browse the repository at this point in the history
  • Loading branch information
Seungup authored Jul 17, 2023
1 parent 5e4a304 commit f0b8361
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export class WEBGLRenderPipeline extends RenderPipeline {
_applyUniforms() {
for (const uniformLayout of this.layout.uniforms || []) {
const {name, location, type, textureUnit} = uniformLayout;
const value = this.uniforms[name] || textureUnit;
const value = this.uniforms[name] ?? textureUnit;
if (value !== undefined) {
setUniform(this.device.gl, location, type, value);
}
Expand Down

0 comments on commit f0b8361

Please sign in to comment.