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

Add option to round depth values when using a depth format fallback #2679

Closed
wants to merge 2 commits into from

Conversation

K0bin
Copy link
Collaborator

@K0bin K0bin commented Jun 11, 2022

Fixes #2642
Might help #2361
Does not fix #1560

I'm not sure if this is the correct fix or if the underlying issue is somewhere else.
The shadow map bias in ACB appears to be too small, so it ends up relying on rounding inaccuracies.
It's entirely possible that we have small floating point math inaccuracies somewhere else but I have no clue how we'd debug that.
This should at least fix the issue even though it's pretty awful.

When using a higher precision depth format
Assassin's Creed Brotherhood, SimCity and The Saboteur
@K0bin
Copy link
Collaborator Author

K0bin commented Jul 25, 2022

This is a disgusting solution. I think I'd rather hack in an additional bias to depth compare sample ops.

@K0bin K0bin closed this Jul 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant