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

Fixing normal based UV calculation in Metal shader #1639

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

colincornaby
Copy link
Contributor

@colincornaby colincornaby commented Dec 4, 2024

The matrix multiply order was incorrect. Also added some clarity to the varaible names.

These changes impact the reflection path - but I'be been unable to verify the before or after state. As discussed in IRC use of reflect seems to be rare and the one case it's used for does not seem to be working in D3D or Metal.

This bug was found in Kemo - specifically with the light posts where the light rays use a normal UV projection. The normal UV path fix was tested in Kemo.

The matrix multiply order was incorrect. Also added some clarity to the varaible names.
@Hoikas Hoikas merged commit 7a0bc73 into H-uru:master Dec 16, 2024
17 checks passed
@colincornaby colincornaby deleted the Metal-Fix-Normal-UV branch December 17, 2024 05:52
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