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

Terrain material filtering #10

Open
kvark opened this issue Jul 5, 2016 · 0 comments · May be fixed by #65
Open

Terrain material filtering #10

kvark opened this issue Jul 5, 2016 · 0 comments · May be fixed by #65

Comments

@kvark
Copy link
Owner

kvark commented Jul 5, 2016

We see heavy blockiness in close-up to the surface, due to the limited resolution of our terrain map, and the fact no filtering is done over the material property.

Obviously, just plain filtering the material ID doesn't work. Averaging materials 5 and 10 doesn't make sense. Instead, we can gather all 4 material IDs, do all the lighting computations on them, and apply bilinear filtering to the result.

Performance-wise, it's not too fast. However, it's only going to be done once per pixel of the main frame rendering (not shadow map or anything else). And there is already some ray-tracing going on there, so it's not like this enhancement would make it much slower :)

@kvark kvark mentioned this issue Sep 15, 2018
3 tasks
@kvark kvark linked a pull request Jan 6, 2019 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant