Prerendered backgrounds with baked depth textures

Should be possible. Here is one old topic Shader that makes geometry invisible but still has them write to depth buffer as if they were opaque? - Archive - Godot Forum maybe in 4 there is a newer way.