Is there a way to force a closest hit shader? |

Trending 1 month ago

I want to adhd a debug characteristic to my ray tracer (runs successful some Vulkan and OptiX). For that, I'd for illustration to move all objects to usage a circumstantial closest deed shader. Can I do this? I person only recovered nan shader offset, but I wouldn't beryllium capable to get each objects to usage nan aforesaid shader that way.

The replacement I'm utilizing correct now is to rebuild nan acceleration structures pinch nan hardcoded shader index, but that seems to beryllium a batch of computation for a conceptually elemental problem...