Skip to content

How to Make a Sprite Glow in Unity

A glow in Unity is two things working together: the sprite drawn brighter than white, and Bloom, a post processing effect that spreads anything brighter than its threshold into a soft halo. Without Bloom there is no halo, only a brighter colour. So when a glow is missing, the sprite is usually fine and Bloom is not reaching it.

The demo's space soldier with its visor and the gun's stripes glowing yellow, the glow rising into a soft halo under Bloom and fading again

Why the glow shows in the Scene view but not the Game view

Section titled “Why the glow shows in the Scene view but not the Game view”

The Scene view has its own post processing switch, in the toolbar’s effects menu, and it applies your Volumes whatever your camera says. So a glow can look perfect there and be missing in the Game view. These are the causes, the most common first.

The camera has post processing off. In URP, select the camera and tick Post Processing under Rendering. Cameras you add yourself start with it off. The URP Renderer asset has its own Post-processing switch, which must be on too.

No Volume with Bloom reaches the camera. The scene needs a Volume with a Bloom override that is Global, or Local with the camera inside its collider, and on a layer the camera’s Volume Mask includes. In the Built-in pipeline the same job is done by the Post Processing package’s Post-process Layer and Post-process Volume. Post Processing Setup walks through both pipelines.

The UI is on a Screen Space Overlay canvas. An Overlay canvas is drawn after every camera has finished, post processing included, so Bloom never sees it. The Scene view draws the same canvas through its own camera, Bloom and all, which is why it glows there. Set the canvas’s Render Mode to Screen Space Camera and its Render Camera to the camera with post processing. Everything on that canvas then goes through that camera’s post processing, colour grading included.

HDR is off. Without HDR, colours stop at white before Bloom sees them, so a glow’s extra brightness is thrown away. In URP, HDR is on the pipeline asset (Quality, HDR) and on the camera (Output, HDR Rendering). In the Built-in pipeline it is on the camera.

Bloom’s Threshold is above the glow. Bloom only spreads what is brighter than its Threshold, 0.9 by default in URP. A faint glow under it gets nothing.

The same glowing UI Image three times. In the Scene view its visor glows with a soft halo. In the Game view on a Screen Space Overlay canvas the visor is only flat white. On a Screen Space Camera canvas the halo is back

An HDR colour and Bloom. Make a Sprite Unlit graph in Shader Graph, add a Color property with its Mode set to HDR, and multiply the sprite’s texture by it into Base Color. Push the colour’s intensity above 1 and Bloom does the rest. The whole sprite glows at once, unless you add a mask texture for the parts that should.

A halo sprite. A soft, blurred copy of the glowing shape, tinted and drawn over the sprite (or behind it, for a glow around the whole silhouette), reads as a glow with no Bloom at all. It works on an Overlay canvas, on mobile without HDR and in any pipeline. It costs one extra sprite per glow and a halo texture you make for each shape, and the halo stays the size you painted it.

Don’t own it yet? → Get it on the Unity Asset Store

Add the AllIn1Shader component to the sprite or UI Image (Add Component → AllIn1SpriteShader → AddAllIn1Shader) and tick Glow in the material’s Color Effects. It still needs Bloom, set up as above.

The Glow effect open in the material: Use Glow Texture, Glow Color, Glow Color Intensity at 10 and Global Glow Intensity at 1
  • Glow Color tints the glow. It is an ordinary colour, not an HDR one, because the next slider does the brightening.
  • Glow Color Intensity adds the sprite’s own colours, tinted by Glow Color, on top of themselves, from 0 (no glow) to 100. The default is 10.
  • Global Glow Intensity multiplies the whole sprite’s colour, from 1 (unchanged) to 100, so everything glows in its own colours.
  • Use Glow Texture? takes the glow from a texture instead of the sprite. Where the texture is transparent nothing glows, so a texture painted only over the visor makes only the visor glow.
The soldier glowing twice. With Glow alone the whole sprite brightens and shifts colour; with a Glow Texture only the visor and the gun's stripes glow, with a halo around them

Several other effects glow the same way, each with its own glow slider: the Outline, Alpha Outline and Inner Outline, Fade’s burned edge, Hit Effect, Shine and Overlay Texture. Color Swap and Change 1 Color take HDR colours instead. All of them need Bloom to glow. Every property is listed on Effects and Properties Breakdown.

In the URP 2D Renderer variant, Glow affects light (on by default, under Lighting Properties) keeps the parts brighter than white from being darkened by 2D lights, so a glowing visor stays lit in a dark scene. See Glow under 2D lights.

The Glow effect works on a UI Image like on a sprite, and the canvas decides whether Bloom reaches it. On a Screen Space Overlay canvas it never does, so the image only gets brighter. Move the UI that should glow to a Screen Space Camera or World Space canvas drawn by a camera with post processing, as in the first section.

Images inside a Mask or a Scroll View need the UI Mask variant to be masked at all; see UI Masking. A masked image keeps its glow, as long as its canvas is drawn by a camera with post processing.

Without Bloom the shader can make a sprite brighter, but it cannot spread light past the sprite’s own pixels. What is left:

  • A halo sprite, as above: the closest look, for the price of an extra sprite.
  • Alpha Outline with a bright colour, which lights up the sprite’s own soft edge. It needs a sprite with soft edges and stays inside them.
  • A brighter colour, with Glow or Global Glow. Without HDR it stops at white, so it reads as a lit sprite rather than a glowing one.
The soldier's glowing visor three ways. With Bloom it spreads into a soft halo; without Bloom the visor is only flat white; a soft halo sprite drawn over it gives a similar glow with no Bloom at all

Leave Glow on in the material and move Glow Color Intensity (_Glow). At 0 there is no glow, so a pulse or a flash is just that number going up and down, from the Animator or from code:

using UnityEngine;
public class GlowPulse : MonoBehaviour
{
private static readonly int GlowIntensity = Shader.PropertyToID("_Glow");
[SerializeField] private float min = 0f;
[SerializeField] private float max = 10f;
[SerializeField] private float speed = 2f;
private Material mat;
private void Awake()
{
mat = GetComponent<Renderer>().material;
}
private void Update()
{
float t = 0.5f + 0.5f * Mathf.Sin(Time.time * speed);
mat.SetFloat(GlowIntensity, Mathf.Lerp(min, max, t));
}
}

On a UI Image, give the image its own material first, as Scripting shows. How to Animate Effects covers the Animator route.

  • A halo without Bloom. The shader brightens the sprite’s own pixels; the light around it comes from Bloom.
  • A glow on a Screen Space Overlay canvas. Bloom never reaches that canvas, whatever the material does.