Working on skyboxes and refraction simultaneously

Published December 13, 2020
Advertisement

Was working on skyboxes when I added an assert to check that the render angle was normalized. It wasn't, so I ran through everything, throwing tons of asserts to find where exactly the angle got out of the 0 to tau range. This is essential for working with refraction, as all angles must have the same scale.

I also got refraction working properly. I can't wait to fill in the windows with actual glass. I added the functionality that in the editor, you can render the paths of the raycasts in real time so that you can see if you have too many rays bouncing around.

Here you can see the ray caster doing realtime recursive reflections. This room is covered in marble, so you get reflections stacked on reflections.
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