Volumetric Light with RTT

https://playground.babylonjs.com/#EBT3JQ#7

I pushed some meshes to RTT’s renderList for applying VLS Effect.

I’m not sure it is right way…

And i’m struggling with hiding meshes that not affected with VLS from scene.

What should I do?

cc @Evgeni_Popov

You can use the vls.excludedMeshes array to exclude some meshes from the effect.

And since 5.38.0 you also have vls.includedMeshes if you have a lot of meshes but only want a small subset to be part of the effect.

2 Likes

Thank you!
It works well.