I’ve been trying to find a solution for this (the sky is meant to be yellow):
Working with layerMasks is too complicated for my scene, to me it seems like the easiest solution is to be able to exclude meshes from the SSAO pass.
Another option might be to add observables before and after passes, then I would be able to make the mesh
isVisible = false for that pass.
Edit: Another maybe simpler possibility would be to make SSAO2 respect
disableDepthWrite = true