Uploaded March 2018 | Updated November 2026, 3 hours ago
I got a 70-80% speedup from rewriting the ray-trace inner loop, so I thought I'd try adding some brute force shadow and reflection rays.
Quite happy with how the water looks, even though the physics are a bit crude (no Fresnel calculations, just mixes reflection and refraction about 40%/60%).
It pushes the frame rate back down to 30-50 fps, so will need some optimising (like rendering a low-res reflection texture to sample from) eventually.
And figuring out how to integrate the polygon rendering into this should be an interesting challenge.
Fun fact: The polygon shadow mapping took several days quite a bit of code to implement. Whereas implementing voxel based shadows took 5 lines of code and 5 minutes!
I got a 70-80% speedup from rewriting the ray-trace inner loop, so I thought I'd try adding some brute force shadow and reflection rays.
Quite happy with how the water looks, even though the physics are a bit crude (no Fresnel calculations, just mixes reflection and refraction about 40%/60%).
It pushes the frame rate back down to 30-50 fps, so will need some optimising (like rendering a low-res reflection texture to sample from) eventually.
And figuring out how to integrate the polygon rendering into this should be an interesting challenge.
Fun fact: The polygon shadow mapping took several days quite a bit of code to implement. Whereas implementing voxel based shadows took 5 lines of code and 5 minutes!










