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

Shadow bias seam #148

Merged
merged 1 commit into from
May 25, 2024
Merged

Conversation

TheIronLefty
Copy link
Contributor

This PR eliminates the constant used in the compute calculation of the world position with normal offset. Its presence was causing significant seams and lighting problems in shadow-mapping. I would appreciate it if you could clarify whether this constant is essential or if its inclusion was an oversight. Based on my tests, its absence does not appear to contribute to any shadow acne issues.

PR

@PanosK92
Copy link
Owner

Recently, I made several improvements to shadow mapping. During testing, I didn’t notice the seam in the Bistro world.

The shadow maps have fixed and slope-based bias baked into them anyway, which significantly reduces shadow acne.

Given this, we can remove the constant bias.

Thank you! 😄

@PanosK92 PanosK92 merged commit 6b6f0b9 into PanosK92:master May 25, 2024
@TheIronLefty TheIronLefty deleted the shadowbiasconstantfix branch May 26, 2024 22:07
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.

None yet

2 participants