Refraction almost working

Published December 13, 2020
Advertisement

Check this out. This is simulating looking from something like water out into something like air. At the surface, rays that are going into it fairly directly are sent through, but with a huge bend, creating a fisheye effect. Rays that hit the surface at more of a glancing angles refract in such a way that they reflect back into the material. This is now simulated perfectly.

This image perfectly shows off what I've simulated. There is a clear, well defined boundary where the camera can see through the water and what's on the other side, and where it can't and just reflects the swimmer.

Underwater view of an underwater swimmer launching off the end of a pool.
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement