Does anyone know of some example code where Arnold ray data is manipulated/altered in a surface shader?
I'd like to 'capture' the ray as it is hitting a transparent surface, change some of the attributes of the ray, and then set it free again! (If you love it, set it free!)
EDIT: Possibly by copying the ray data into a new ray.
Doe anyone know of example code or have some pointers for how I could start?