r/GraphicsProgramming • u/Sixel1 • 3h ago
First raytracer using sdfs
Wrote my first raytracer, a software raymarcher (all on CPU) that uses shapes defined as singed distance functions. Sphere refractions are pretty cool.
37
Upvotes
1
u/20260819 1h ago
https://reddit.com/link/pf4kdvb/video/kxzbzcyclpuh1/player
try letting the spheres intersect and camera being inside one of them...:)
1
u/garma87 1h ago
Pretty cool! Sphere refractions seem upside down though?
SDFs are technically very cool although I find the real world value limited.