Skip to content
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

Fix quantized vec3 colors in ModelExperimental #9957

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

ptrgags
Copy link
Contributor

@ptrgags ptrgags commented Dec 2, 2021

Fixes #9814

(Note: don't use the model from the original issue, it still won't load due to #9956 which is a separate issue)

#9955 fixed vec3 colors in ModelExperimental, but a few more steps had to be done for this to work with quantized attributes (as even the offset/stepSize uniforms need to be promoted to vec4

@sanjeetsuhag could you review?

@ptrgags ptrgags requested a review from sanjeetsuhag December 2, 2021 22:07
@cesium-concierge
Copy link

Thanks for the pull request @ptrgags!

  • ✔️ Signed CLA found.
  • CHANGES.md was not updated.
    • If this change updates the public API in any way, please add a bullet point to CHANGES.md.

Reviewers, don't forget to make sure that:

  • Cesium Viewer works.
  • Works in 2D/CV.

Copy link
Contributor

@sanjeetsuhag sanjeetsuhag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good. Tested with this local Sandcastle and the model is loading, and the VEC3 is correctly being promoted to VEC4 in the shader.

Thanks @ptrgags!

@sanjeetsuhag sanjeetsuhag merged commit 5611fa4 into main Dec 3, 2021
@sanjeetsuhag sanjeetsuhag deleted the quantized-vec3-colors branch December 3, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GltfLoader isn't correctly detecting quantized vertex colors
3 participants