I also programmed something similar, but this is an endless procedurally generated maze → Backrooms in Babylon.js (Version 5) | Babylon.js Playground, although your version with cross-shaped walls would suit me more than just transitions, but I no longer have such a task, you should be interested in this topic → Endless backrooms in Babylon.js! - Demos and projects - Babylon.js.