# Assigning renderingGroupId affects HighlightLayer

**URL:** <https://forum.babylonjs.com/t/assigning-renderinggroupid-affects-highlightlayer/55865>\
**Category:** Questions\
**Created:** [January 9, 2025, 6:35am UTC](https://forum.babylonjs.com/t/assigning-renderinggroupid-affects-highlightlayer/55865 "2025-01-09T06:35:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yedpodtrzitko](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@yedpodtrzitko](https://forum.babylonjs.com/u/yedpodtrzitko)\
**Post date:** [January 9, 2025, 6:35am UTC](https://forum.babylonjs.com/t/assigning-renderinggroupid-affects-highlightlayer/55865/1 "2025-01-09T06:35:42Z")

</div>

Hi,  
I’m not sure the following behaviour is expected or if it’s a bug. I’d appreciate any advice how to solve this scenario:

- have a billboard plane rendered in front other meshes (solved via assigning `renderingGroupId`)
- use `HighlightLayer` to render outline for meshes in the scene

using both of these is messing up the `HighlightLayer` behaviour, as it highlights the whole mesh instead of just the outline:

> **[Babylon.js Playground](https://playground.babylonjs.com/#8Q5J0M%231)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

---

<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:** [January 9, 2025, 9:58am UTC](https://forum.babylonjs.com/t/assigning-renderinggroupid-affects-highlightlayer/55865/2 "2025-01-09T09:58:54Z")

</div>

By default, effect layers are applied after all rendering groups have been processed. You can instruct the layer to render after a specific rendering group by setting a value to the `renderingGroupId` option parameter of the constructor:

> **[Babylon.js Playground](https://playground.babylonjs.com/#8Q5J0M%232)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL and WebGPU 3D scenes

---

<div class="post-metadata">

**Author:** ![yedpodtrzitko](https://avatars.discourse-cdn.com/v4/letter/y/a9a28c/32.png) [@yedpodtrzitko](https://forum.babylonjs.com/u/yedpodtrzitko)\
**Post date:** [January 9, 2025, 2:55pm UTC](https://forum.babylonjs.com/t/assigning-renderinggroupid-affects-highlightlayer/55865/3 "2025-01-09T14:55:39Z")

</div>

thank you
