It would be awesome to have a little blog post about why and how, this is very cool tech! I'm lazy I don't want to go read the code, I want a beautiful and clear explanation with pictures
And about the what. What exactly am I looking at? All I can tell is it has something to do with the physics of light. What assumptions are made? What models are used?
I wish there was a "best of" for this. I don't have the arts enough to make anything visually pleasing and would love to see the results of those that do.
It seems like this effect could be got much more efficiently using block lighting. you could get the gradients by storing the light's strength at each vertex. This way you would be tracing only two rays per line
My first reaction was to try the double-slit experiment, but unfortunately there was no interference pattern. Beautiful none the less. (Ok, a little less.)
It's an interactive raytracing demonstration. Draw on it, and watch it simulate light diffusion, reflection, and transmission. It's pretty straightforward, actually.
This was created by someone the last time this was on HN: https://news.ycombinator.com/item?id=5983421