Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 Fix issue with setting 0 or false values
The change involves replacing the logical OR operator (`||`) with the nullish coalescing operator (`??`) in the `_applyUniforms()` method. This modification addresses a specific issue where 0 or false values were not being correctly assigned. By using the nullish coalescing operator, the code ensures that if the value of `this.uniforms[name]` is either 0 or false, it will be properly assigned as the value for `value`. This change enhances the accuracy and reliability of the code by handling these specific cases effectively. ✅ Closes: #1741
- Loading branch information