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 base color calculation for 3D Tile styles #12060

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Fix base color calculation for 3D Tile styles #12060

merged 1 commit into from
Jul 1, 2024

Conversation

jjhembd
Copy link
Contributor

@jjhembd jjhembd commented Jul 1, 2024

Description

After #12043, we have separate properties on czm_modelMaterial for the material baseColor and the computed diffuse lighting result.

Since CPU styling is applied before lighting calculations, it should now modify the baseColor rather diffuse. This explains a few spec failures when running locally.

Issue number and link

Testing plan

Run Cesium3DTilesetSpec locally

Author checklist

  • I have submitted a Contributor License Agreement
  • I have added my name to CONTRIBUTORS.md
  • I have updated CHANGES.md with a short summary of my change
  • I have added or updated unit tests to ensure consistent code coverage
  • I have updated the inline documentation, and included code examples where relevant
  • I have performed a self-review of my code

Copy link

github-actions bot commented Jul 1, 2024

Thank you for the pull request, @jjhembd!

✅ We can confirm we have a CLA on file for you.

@ggetz
Copy link
Contributor

ggetz commented Jul 1, 2024

Awesome, I can confirm this fixes the specs. Thanks @jjhembd!

@ggetz ggetz merged commit 290f01d into main Jul 1, 2024
10 checks passed
@ggetz ggetz deleted the color-blend-spec branch July 1, 2024 17:32
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.

2 participants