Let’s say I have some per vertex attributes for my triangle mesh. I would like to get the interpolated value in the closest hit program. I don’t think it’s possible without the intersection program passing some information(primitive ID or the interpolated value directly) to the closest hit program. Can anyone give me some hints on how this can be implemented?
Thanks very much,