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

**URL:** <https://forum.babylonjs.com/t/strange-bloom-effect-on-bounding-boxes-when-a-highlight-layer-is-added/14737>\
**Category:** Bugs\
**Created:** [October 7, 2020, 2:28pm UTC](https://forum.babylonjs.com/t/strange-bloom-effect-on-bounding-boxes-when-a-highlight-layer-is-added/14737 "2020-10-07T14:28:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![artteq](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@artteq](https://forum.babylonjs.com/u/artteq)\
**Post date:** [October 7, 2020, 2:28pm UTC](https://forum.babylonjs.com/t/strange-bloom-effect-on-bounding-boxes-when-a-highlight-layer-is-added/14737/1 "2020-10-07T14:28:15Z")

</div>

Hi guys,

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

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

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [October 7, 2020, 4:27pm UTC](https://forum.babylonjs.com/t/strange-bloom-effect-on-bounding-boxes-when-a-highlight-layer-is-added/14737/2 "2020-10-07T16:27:57Z")

</div>

pinging @sebavan

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 7, 2020, 4:53pm UTC](https://forum.babylonjs.com/t/strange-bloom-effect-on-bounding-boxes-when-a-highlight-layer-is-added/14737/3 "2020-10-07T16:53:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [October 7, 2020, 5:08pm UTC](https://forum.babylonjs.com/t/strange-bloom-effect-on-bounding-boxes-when-a-highlight-layer-is-added/14737/4 "2020-10-07T17:08:38Z")

</div>

Made a small PR in case it could be useful:

> <https://github.com/BabylonJS/Babylon.js/pull/9114>

---

<div class="post-metadata">

**Author:** ![artteq](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@artteq](https://forum.babylonjs.com/u/artteq)\
**Post date:** [October 7, 2020, 7:13pm UTC](https://forum.babylonjs.com/t/strange-bloom-effect-on-bounding-boxes-when-a-highlight-layer-is-added/14737/5 "2020-10-07T19:13:33Z")

</div>

Cool! Thanks!
