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

[graphics] Fix issue with envmap math #3862

Merged
merged 3 commits into from
Feb 16, 2025
Merged

[graphics] Fix issue with envmap math #3862

merged 3 commits into from
Feb 16, 2025

Conversation

water111
Copy link
Collaborator

A few people in the discord noticed that the shiny part of the subrails looks different between PS2 and OpenGOAL. I looked into this and found a bug where the length of the normals was half what they should have been. Earlier this didn't matter because I normalized them in the shader, but at some point I removed that when refactoring other parts.

I'm not completely convinced we have the intensity/tint multiplier working correctly, but this is at least a step in the right direction.

nrm_before-2025-02-16_16.03.00.mp4
nrm_after-2025-02-16_16.01.36.mp4

For fun, here's this fix, plus a random doubling of the envmap effect strength:

double-2025-02-16_16.13.22.mp4

@water111 water111 merged commit af9a8dd into master Feb 16, 2025
11 checks passed
@water111 water111 deleted the w/envmap-nrm-fix branch February 16, 2025 21:58
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