Hybrid Rendering MPSRayIntersector not working

Hello, im trying to add RT shadows to my deferred rendering engine and I been stuck for days now.

Using MPSRayIntersector and following apple's example on https://developer.apple.com/documentation/metalperformanceshaders/animating_and_denoising_a_raytraced_scene

Here's my scene with 2 Models

please help thank you !

Accepted Reply

made MPSRayIntersector work... I was mixing normals with vertices when loading a .OBJ always check MDLVertexDescriptor

Replies

These models are being imported by Model I/O api

made MPSRayIntersector work... I was mixing normals with vertices when loading a .OBJ always check MDLVertexDescriptor