I admit this isn't finished yet. I only shoot one ray so you get circles rather than deeply colored spheres. But this year's sed compulsion might be passing, so here it is.
Here's the code, and some sample input, and its PostScript output.