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

Simplified passing ior #4441

Merged
merged 1 commit into from
Jul 15, 2022
Merged

Simplified passing ior #4441

merged 1 commit into from
Jul 15, 2022

Conversation

GSterbrant
Copy link
Contributor

Description

This PR removes the ior chunk as it's only a single uniform anyways. IOR is accounted for in the BRDF by passing the ((IOR - 1) / (IOR + 1))^2 to the shader separately, such that we don't need to calculate the f0 reflectance factor per vertex/pixel.

@GSterbrant GSterbrant requested a review from slimbuck July 15, 2022 09:25
@GSterbrant GSterbrant self-assigned this Jul 15, 2022
@GSterbrant GSterbrant merged commit 5921ed0 into main Jul 15, 2022
@GSterbrant GSterbrant deleted the gsterbrant_ior_simplify branch July 15, 2022 11: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.

None yet

2 participants