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

Use fallback textures for base color when no diffuse is given #655

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

javagl
Copy link
Contributor

@javagl javagl commented Feb 10, 2024

Addresses CesiumGS/cesium#11821
May replace #654

When a KHR_materials_common had the CONSTANT technique, then the resulting PBR material did not contain a base color texture, because the CONSTANT technique did not support diffuse textures. However, it could contain ambient or emissive textures. With the change here, the conversion will try to assign the ambient- or emissive texture as the base color texture when the CONSTANT technique is used.

@lilleyse lilleyse merged commit cbbff2f into main Feb 12, 2024
2 checks passed
@lilleyse lilleyse deleted the fallback-textures-for-constant-technique branch February 12, 2024 14:08
javagl added a commit to CesiumGS/cesium that referenced this pull request Feb 12, 2024
pupitetris pushed a commit to pupitetris/cesium-webxr that referenced this pull request Mar 4, 2024
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