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

Improve Refraction #1601

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ThatRedox
Copy link
Member

Fixes #1515
There was a check in the octree intersection code ignoring intersections with air. Removing this broke the water octree. I put a hack that coerces the ray's current block to be air if it isn't water when intersecting with the water octree. This seems to work for now but probably needs more testing.

…tree not get confused since its now considering air.
@ThatRedox
Copy link
Member Author

My Test Scene: Refraction Test.zip
image

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.

Refraction is incorrect
1 participant