Assigning renderingGroupId affects HighlightLayer

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:

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:

2 Likes

thank you