How to disable post effect on GUI that linkWithMesn


I learnt how to separate GUI with post effect(by creating additional layermask and camera, see here). But this trick doesn’t work when it comes to GUI elements link with a mesh. How may I render the mesh in post effect and leave the linked GUI pure at the same time? I created a PG for you to test and operate.

Thank you! Any help is appreciated!

cc @DarraghBurke


The linkWithMesh wasn’t correct in that case because it uses the bgCamera’s matrix to find the mesh’s position on the screen (Babylon.js/advancedDynamicTexture.ts at master · BabylonJS/Babylon.js (, and the bgCamera wasn’t the same as the main camera. One way to fix this is by making sure the two cameras are synchronized, like this: Simple GUI in fullscreen mode | Babylon.js Playground (