Broken shader after migrating to Unity6

Hello everyone!
I recently migrated to Unity6, everything seemed to be working fine, until I tested one shader that is not working as expected. This is an intersection shader that I created, and only seems to work in the scene view, or if I have Gizmos enabled during play mode. Checking the frame debugger, it seems like it’s probably caused because the Draw Depth Only render pass is only active with Gizmos enabled.


Found the issue, the Depth Texture Mode in my renderer asset was set “After Transparents” for some reason (I didn’t touch it and it worked fine in previous version), fixed it by changing it to “After Opaques”