Volumetric Light Scattering Post Process

When used in conjunction with Babylon GUI, is there a way to prevent the light from appearing above the GUI?

See here: (I want the GUI to be unaffected by the ‘light’)



Hi,You can use layerMask

Thanks for the reply. I found that with playground you posted, I can comment out the layer mask/layer lines, and only leave the line to add camera 2 to the scene, and it still works:


But what exactly are the effects of adding a second camera to the scene?

@Sme You can see, VolumetricLightScatteringPostProcess need a camera, the scene of the second camera is not added to the VolumetricLightScatteringPostProcess, if you comment out the first camera will see the effect.

1 Like