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

Flipped toybox normal map along x and y-axis. #319

Closed
wants to merge 6 commits into from

Conversation

cmhhelgeson
Copy link
Contributor

See issue #317

@ben-clayton
Copy link
Collaborator

ben-clayton commented Nov 7, 2023

It looks like after you flipped the height map, you then regenerated the normal-map, instead of just flipping that. For some reason, the normals for this texture then point the wrong way. I don't know why this texture appears wrong, when the others look okay.

I wanted to confirm that this was an issue with the texture and not a bug in the code, so I spent some time going through the sample's code. I think the code was sound, but I cleaned up the code as I went along. PR (with the texture fix) here: #320

@cmhhelgeson
Copy link
Contributor Author

Pull request closed due to issues being more comprehensively addressed by #320.

@cmhhelgeson cmhhelgeson closed this Nov 7, 2023
@cmhhelgeson cmhhelgeson deleted the normal_lighting_fix branch April 12, 2024 16:40
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