Weird highlight layer issue with custom node material

Hi everyone!

I have an odd issue with a highlight layer interacting/interfering with my custom node material setup. It is something with these two components:

  • Highlight layer that is supposed to indicate pickable items in my game
  • A custom node material that is a weapon range shader in my game

So when a mesh with a highlight enters the radius of the node material/inside the mesh that has the node material, it gets turbocharged with highlight power!

Repro: Babylon.js Playground

Can anyone point out what the issue might be? Not knowing the highlight layer anatomy that well so cannot tell my self… Any help would be appreciated! :kissing_face_with_smiling_eyes:

I’m not sure to understand what the problem is, but try to exclude the sphere from the highlight layer:

2 Likes

Argh that worked! Thank you! Didn’t realize it was the sphere doing the highlight :smiley: