I’m struggling to implement a glowing border around an actor/sprite upon a click event. The click is working fine,and I have managed to make the entire sprite glow by using a custom material but I need to be able to see the unaltered sprite with a glowing outline.
Yes, I’ve seen several ideas on how to do this in 3D, and I have implemented similar myself fine in 3D but doing it in 2D is proving to be somewhat difficult.
Back then i was looking for node that can read if pixel is sprite or 3d viewport.
But you can just read alpha of 2d sprite material and apply glow or not. That would be like 2d shader applied to edges of material. Not 3d shader as postprocess.
I know sometimes you need postprocess when you want glow globally not applied to every material in sprites.