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 !

Answered by masaldana2 in 750575022

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

These models are being imported by Model I/O api

Accepted Answer

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

Hybrid Rendering MPSRayIntersector not working
 
 
Q