I’m looking for a material/shader I can apply to sprites (ideally both UI and non-UI sprites), that mimics Photoshop’s outer-glow effect. (Understandably it won’t recreate Photoshop’s outer glow exactly!)
2DxFX doesn’t appear to have a glow effect, just solid outlines. Same for Sprite Color FX.
Blend Mode does this apparently, but its $75 - looking for something cheaper. Also, only works on some mobile devices.
Glow Effect appears to be full-screen only, and I’m looking for per-sprite.
I haven’t tried MK Glow - but looks to be mesh-based.
Advanced Glow doesn’t have much of a description and some poor reviews. Doesn’t mention sprites anyway.
This Unity Answers post (“Make Sprites Glow” reference s"glow" provides a different (a nice shine) effect. Not what I’m looking for.
This Unity Forums post ("Create a Glowing effect for 2D sprites) hasn’t helped me, the Glow Per Object asset has a tiny description and a 2 star rating, so I’ve avoided it so far. Not obvious it setup for sprites or mobile.
This Unity forums thread (“free sprite flow shader”) refers to a Unity Technologies Bit Bucket 2D demo repo, but the link doesn’t work (I’m also new to BitBucket). Suspect it the relevant files may not be available now.
… …so I’m asking a common question, looking for new answers. I need something that
Works with sprites
Provides an outer glow (soft, faded edge, expanding from the edge of the sprite (not a solid stroke))
Works on mobile (I will be applying it to 128x128 sprites, so the per-pixel cost should be fairly low)
Doesn’t need to be free, but preferable <$25
Does anyone have any experience of existing assets or techniques to help me? If I’ve been unfair or misunderstood any of the assets linked above, please correct me!
The problem with outer glow is it’s a very expensive effect to reproduce in real time, and worse the way sprites work the glow can only extend as far as the sprite’s mesh, which is usually fairly tight to the sprite, and can bleed glows from the surrounding sprites packed in the sprite atlas too close, hence why the outline effect that is common is usually only a pixel or two wide.
The easiest way to do a outer glow like Photoshop is going to be to an outer glow in Photoshop. It wouldn’t be too hard to just have the glow just in the alpha channel and a fairly simple shader to use that alpha in a way to allow for it to show as a glow. Obviously requires some setup, but doesn’t have the issues a purely shader based approach would have.
The sprite was generated by using an outer glow with precise settings and an alpha of 75%. That value is important for the shader to work properly. A softer outer glow will work too, but it won’t scale as nicely.
That draws a super bright outline around the sprite, then lets the bloom post process do the glow. Post processing can be very slow on mobile. The above technique doesn’t require any post processing.