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

FF7: Implemented GPU-based original game lighting that better matches PSX version #607

Merged

Conversation

CosmosXIII
Copy link
Contributor

Summary

I re-implemented the original lighting done by the game in the shaders instead of the original CPU-based implementation.
In doing so I found that the light directions used by the game were inverted compared to the PSX version, so the new modes fix that too. The new modes better match better the PSX version lighting but there are small differences in contrast. Part of this is due to FFNx normal auto-calculation so those may not fully match.

Motivation

To make people happy. Also, if we end up doing smooth skinning, doing lighting on the GPU is necessary so this paves the path for that.

ACKs

  • I have updated the Changelog.md file
  • I did test my code on FF7
  • I did test my code on FF8

@CosmosXIII CosmosXIII force-pushed the gpuBasedOriginalLighting branch 3 times, most recently from 1a1c1e3 to 4b84338 Compare September 24, 2023 20:33
@julianxhokaxhiu julianxhokaxhiu added the enhancement New feature or request label Sep 24, 2023
@julianxhokaxhiu julianxhokaxhiu added this to the 1.17.0 milestone Sep 24, 2023
src/renderer.cpp Outdated Show resolved Hide resolved
Copy link
Owner

@julianxhokaxhiu julianxhokaxhiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor indentation issues, but the PR looks good to me. Thanks, looking forward to it :)

@CosmosXIII CosmosXIII force-pushed the gpuBasedOriginalLighting branch 5 times, most recently from ce365b8 to 71f33f0 Compare September 25, 2023 18:10
@julianxhokaxhiu julianxhokaxhiu merged commit 18ec437 into julianxhokaxhiu:master Sep 26, 2023
1 check passed
@julianxhokaxhiu
Copy link
Owner

Thank you :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants