GIRSM doesn’t work with the pre-pass renderer, see:
The workaround is to force SSAO or SSR to use the geometry buffer instead:
let ssao = new BABYLON.SSAO2RenderingPipeline(
"ssao",
scene,
{
ssaoRatio: 0.5,
blurRatio: 0.5,
},
camera,
true // forceGeometryBuffer
)