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

custom models: better error for invalid envmap material #3784

Merged
merged 2 commits into from
Nov 27, 2024

Conversation

Hat-Kid
Copy link
Member

@Hat-Kid Hat-Kid commented Nov 27, 2024

When a material in Blender has its IOR level changed to anything other than the default value of 0.5, the KHR_materials_specular extension is applied during the glTF export, which is what we use to check for envmaps in custom models. If an envmap is undesired, but the IOR value was accidentally changed, the program would assert during model processing if there is no metallic roughness texture attached to the material.

Since this is an easy mistake to make and is hard to spot, this adds a better error message for such cases.

@Hat-Kid Hat-Kid merged commit ef719d2 into open-goal:master Nov 27, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant