forked from zeux/meshoptimizer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
demo: Fix color scaling behavior for simplification #nojira
When simplifying meshes, we no longer need to divide by 255 because BufferAttribute.getX will do this for us as of three.js 144. This was missed during a three.js version upgrade which broke attribute awareness in the demo by using very small color values that ended up not affecting the simplification result. When simplifying points, we are converting typed arrays without any normalization; as such, we need to normalize these by applying the scaling factor to color weight.
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters