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’)
https://www.babylonjs-playground.com/#AU5641#12
Thanks
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’)
https://www.babylonjs-playground.com/#AU5641#12
Thanks
Hi,You can use layerMask
https://www.babylonjs-playground.com/#AU5641#13
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:
https://www.babylonjs-playground.com/#AU5641#14
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.
https://www.babylonjs-playground.com/#AU5641#15