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 sheen glossiness and colour not getting applied correctly #4619

Merged
merged 3 commits into from
Sep 6, 2022

Conversation

GSterbrant
Copy link
Contributor

@GSterbrant GSterbrant commented Sep 5, 2022

Description

Fixes a bunch of issues with sheen. The first of which is that due to glossiness being roughness from glTF, we can't optimise the value out sheen glossiness tinting if the value is 1.0.

Furthermore, it turns out the sheen textures weren't even applied, so this PR fixes that as well.

We disable the glossiness tinting when it's 1.0, but in glTF this value corresponds to roughness, so for glTFs, 0.0 should turn it off. Obviously, we don't know which shader chunk we are using so we have to just always enable sheen glossiness tinting.
@GSterbrant GSterbrant added bug area: graphics Graphics related issue labels Sep 5, 2022
@GSterbrant GSterbrant self-assigned this Sep 5, 2022
For some reason, this was overlooked in the previous PR, and we never set sheen glossiness or sheen colour textures.
@GSterbrant GSterbrant changed the title Fix glossiness not being applied to some glTFs where it's 1.0. Fix sheen glossiness and colour not getting applied correctly Sep 6, 2022
@GSterbrant GSterbrant merged commit 01bc53b into main Sep 6, 2022
@GSterbrant GSterbrant deleted the gsterbrant_sheen_glossiness_fix branch September 6, 2022 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants