i’ve a scene in which i use some glow effect to higlight some meshes. The problem is that the glow is always visible even if it is hidden by a foreground mesh like in this PG: Babylon.js Playground
I tryed also using two cameras with mask, but in this case the masked mesh is always in foreground even if it is not supposed to be: https://playground.babylonjs.com/#URYS75#3 (try to rotate the scene: the sphere is always in foreground).
Is there a way to hide the glow effect without using two cameras technique?
EDIT: if i don’t use
it seems to work.
But in this way i don’t know how to include/exclude multiple meshes. In my application i have many meshes that can be higlighted depending on user selection. It is for this reason that i use