Ray tracing

I’m wondering if it would be possible to implement ray tracing in Spark. Is there a missing capability that would be required for it to work? I think it needs to be able to do iteration, which Spark isn’t particularly suited for, but other than that, what would be involved in making it work?

What are we achieving in this ray tracing ?

I was initially thinking about 3D fractals, but now that I think about it, you could make some pretty neat stuff with 3D SDFs, too. You’d just need to write your own lighting shader for it…


I think it would need to be done in script due to the number of iterations needed. But still, I’m not sure if Spark will be able to handle it.