-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Material: Make .vertexColors a boolean. #18584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Agreed on this change! Do you want the strict |
Makes totally sense! I've changed |
|
Does |
At least not in context of three.js/src/core/DirectGeometry.js Lines 175 to 187 in 76d16bd
|
|
TBH, I would remove |
Ok, thanks! |
|
Nice clean up! |
Well, the idea of |
Okay, that's of course a valid use case for the renderer. |
|
Thanks! |
This PR makes
Material.vertexColorsto a boolean. However, it's still possible for backwards compatibility reasons to use the old style by assigning one of the constantsTHREE.NoColors,THREE.VertexColorsandTHREE.FaceColors.More information: #14788 (comment)