Strange bloom effect on bounding boxes when a highlight layer is added

Hi guys,

the bug is as described in the topic name. Please see this PG:
https://playground.babylonjs.com/#4F33I3#21

Please let me know if it’s not a bug and I’m doing something wrong. Thank you!

pinging @sebavan

For the time being the bounding boxes are also displayed in the highlight layer, hence the “bloom” effect (in fact it is the highlight).

It would not be difficult to remove them from the highlight layer but I wonder if we should always remove them from the layer or have a switch that would let the user choose to render them in the layer or not?

Note that there’s probably the same effect in the glow layer.

1 Like

Made a small PR in case it could be useful:

2 Likes

Cool! Thanks!