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 cesium:debug:randomColors with vertex colors #497

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Conversation

lilleyse
Copy link
Contributor

@lilleyse lilleyse commented Oct 18, 2023

Fixes #429. Previously randomColors would have no affect for tiles with vertex colors (including point clouds).

Now that we have our own cesium_material shader I went with option 1 in #429.

Test data: vertex-color.zip

Without randomColors With randomColors
without with

@@ -158,7 +153,7 @@ void FabricGeometry::initialize() {
}

if (hasVertexColors) {
attributes.addAttribute(FabricTypes::primvars_vertexColor, FabricTokens::primvars_vertexColor);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the vertexColor attribute never going to be used going forward for anything, such as styling?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, I see. Got it. Nevermind.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it's basically just a rename from vertexColor to displayColor. Trying to be more consistent with USD conventions.

Base automatically changed from multiple-raster-overlays-cleanup to main October 19, 2023 22:57
@lilleyse lilleyse merged commit 7fc5672 into main Oct 19, 2023
3 checks passed
@lilleyse lilleyse deleted the fix-debug-color branch October 19, 2023 23:01
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.

cesium:debug:randomColors doesn't work if tile has vertex colors
2 participants