POM material

Yes you could do for sure. At some point you are re-creating lots of code that exists already using the global distance fields, but there is currently no way to raytrace only a single distance field in a material unless you define the distance field yourself (or using the Volumetric Decals which I have now messed with and added some basic shapes and combiner functions for).

FWIW its fairly cheap to compute the normal using gradient lookup at runtime so you don’t necessarily need to prebake the normal for it. You just need to do a lookup with offset X Y and Z, get the difference from the current sample and then normalize the result.

All the ray tracing examples people are posting are really neat. has been a great learning experience for me as well. Seeing the cat scan data is a really cool use of it. I was testing some cloud rendering stuff that is kind of similar (as well as a ray tracer with subsurface and transmission) but its all kind of in limbo right now as my various experiments are left in half completed states.

I am thinking at some point of making kind of an an animated example material that shows how the ray tracing stuff works for people who are still figuring it out.