Is it possible to mask a scene with another scene? ("Mask Pass")
aldanor replied to aldanor's topic in Questions & Answers@NasimiAsl Thanks for the example -- however, it's slightly different; look, in my codepen the mask was preventing *any* rendering of the main scene, and you could see the background clearly through it (as opposed to postprocessing just being applied on top). In your example, is it possible to prevent the sphere to be rendered at all at the masked locations?
After skimming through Babylon.js docs, I couldn't quite figure out whether it's possible to have one scene mask another (apologies if I mix up some common terminology). In THREE.js, you could set up a separate MaskPass for that; here's an example I put together of what I want to achieve: https://codepen.io/aldanor/pen/NOawKb Would it be possible to reproduce this example in Babylon.js? // Thanks in advance