I have a game object with a “dissolve” material, implemented via an HDRP Shader Graph, that is being incorrectly rendered in front of other game objects. The dissolve effect occurs when the item spawns or is destroyed. The game object is a capsule presently, which is just a stand in for a more complicated mesh I haven’t yet developed.
The two items which are being rendered behind the capsule are…
- a laser beam implemented via a Line Renderer with its own Shader Graph based material
- a spark effect implemented via a VFX Graph, the effect component being attached to an empty which is housed in a prefab
I’ve attached two pictures illustrating the problem. Any idea why this happening and what needs to be changed to fix it?