Water reflections and voxel shadows @TomMulgrew
Water reflections and voxel shadows  @TomMulgrew
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!
Water reflections and voxel shadowsRacetrack Builder - Track typesProcedurally generated ruinsThunderbolt level 5Thunderbolt Level 4 BossTripod walkerThunderbolt Blimp BattleRacetrack Builder Quick Tutorial 5: JumpsPoint-cloud modelSVO Terrain 3SVO car scene (higher res model)Whiplash Taxi Co. Downtown lap
Tom Mulgrew |

Water reflections and voxel shadows

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER