I'm relatively new to Metal. Let's say I have a large scene with many objects/primitives and I want a quick way to know what object has been clicked/touched on? I'm familiar with bsp data structures I might use on the CPU and, of course, there is the MPS ray tracing stuff, but is there a more common approach? Maybe culling to a reduced frustum around the hit point and rendering geometry using a special shader and reading back some result?
What is best practice for hit testing with Metal?
Add a Comment