I’m trying to get all hits along a ray. I need to store all hits info for further use after a ray traversal is done, which info like barycentric and distance. I mean add all hit into an array or other containers in any-hit function and handle them after the function optixTrace().
Is there any solution for that? thanks!