I'm trying to find a way to make ray skip hairs to find light sources around hairs.
It is simple to ignore hairs by writing a custom hair shader that just calls mi_trace_continue, but if there is a bunch of hairs in the scene, it soon results in stack overflow (or lacking of trace depth).
Another idea is to use mi_trace_probe_x with appropriate trace flag, but in my experiment, mi_trace_probe_x hits hairs even if trace flag is zero.
Is there any way to achieve this goal?
Thanks in advance.