It's based off the idea of rendering using raymarching on distance functions, except I bastardized it to render metaballs. Take a look if you like, the magic is in dffs.txt. I should probably rewrite it to use the newton-rapheson method for root finding, but oh well.
Disclaimer: No warranty implied. If it destroys your computer, tough luck :p