Another demo to waste your precious time with. And I'm hardly even joking, kicking around those balls can be an incredibly fascinating thing. I've spent too much time doing that today when I should be tuning the code ...
Anyway, this demo is about raytracing the shadows. The shader gets a list of spheres and computes the shadows from that. No stencil volumes or shadow mapping, just a plain list of objects. Easy enough for simple object like spheres.
http://esprit.campus.luth.se/~humus/
Anyway, this demo is about raytracing the shadows. The shader gets a list of spheres and computes the shadows from that. No stencil volumes or shadow mapping, just a plain list of objects. Easy enough for simple object like spheres.
http://esprit.campus.luth.se/~humus/