-
Notifications
You must be signed in to change notification settings - Fork 21
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
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :)
The text was updated successfully, but these errors were encountered: