chunky-dev / chunky

A path tracer to create realistic images of your Minecraft worlds.
https://chunky-dev.github.io/docs
GNU General Public License v3.0
643 stars 76 forks source link

Improve Refraction #1601

Open ThatRedox opened 1 year ago

ThatRedox commented 1 year ago

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.

ThatRedox commented 1 year ago

My Test Scene: Refraction Test.zip image