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

GPU: Respect world matrix and reverse flag w/o normals #16265

Merged
merged 3 commits into from
Oct 21, 2022

Conversation

unknownbrackets
Copy link
Collaborator

Per some hardware tests, the reverse flag is definitely still applied, and multiplication by the world matrix also happens.

This doesn't explain the Ridge Racer issue, but at least it answers one question.

This is why the jump smoke cloud was colored wrong here:
#14223 (comment)

This corrects that in hardware and software renderers.

-[Unknown]

Per tests, Z is still negated even when using the previous normal value.
Even when it's not in the vertex data, we still must multiply by the world
matrix.  Fixes some lighting issues in Nayuta no Kiseki.
See frame dump in hrydgard#14223, which requires world matrix be applied.
@unknownbrackets unknownbrackets added the GE emulation Backend-independent GPU issues label Oct 21, 2022
@unknownbrackets unknownbrackets added this to the v1.14.0 milestone Oct 21, 2022
@hrydgard
Copy link
Owner

hrydgard commented Oct 21, 2022

Oh, cool find! Happily one with straightforward fixes, we haven't been blessed with those lately :)

@hrydgard hrydgard merged commit a830f18 into hrydgard:master Oct 21, 2022
@unknownbrackets unknownbrackets deleted the lighting-nonormal branch October 21, 2022 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GE emulation Backend-independent GPU issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants