Skip to main content
Lighting captures the surface direction (the normals) of your source and uses it in two ways:
  • Normal maps for your game’s 2D lights. Export writes one per sprite sheet and links it to the sprites automatically.
  • Fixed lights in the Preview, which you can bake into the exported sprites for a hand-shaded look.
Lighting also unlocks the Lit and Normal draw modes in the Preview. Without an enabled Lighting effect, the Preview shows Unlit.

When to use it

  • Your game uses 2D lights (URP 2D Renderer): keep Export Lit Sprites off and use the exported normal maps. The sprites stay unlit and react to the lights in your scene.
  • You want a fixed, hand-shaded look that works in any pipeline: turn Export Lit Sprites on. The shading is baked into the sprites, and you can still export normal maps.

Settings

Fields appear in four groups. The light fields show only while that light is Enabled.

Settings

Global Light

An ambient light that brightens every pixel evenly.

Directional Light

A light from one direction that gives the sprite a lit side and a shaded side.
Turn on Show Directional Light Gizmo in the Preview’s gear menu to see the light direction while you tune it. The gizmo shows in Lit mode.

Export

The order of Lighting and Color Palette matters for the look. With Palette Affects Lighting off, the palette snaps the base colors first. If the profile also has Pixel Cleanup, Dithering or Palette Swap, those effects need palette colors, so the lit colors are snapped to the palette again before them, and Lighting shows a note naming those effects. See processing order.

Use the normal maps with URP 2D lights

An exported sprite under a URP 2D point light from the left and from the right, with the normal map on and off
1

Export with Export Normal Map on

Each sprite sheet gets its normal map as the _NormalMap secondary texture. You don’t need to change any import settings.
2

Use a lit sprite material

Give the SpriteRenderer the URP 2D Renderer’s default lit sprite material, Sprite-Lit-Default.
3

Turn on normal maps on your 2D lights

On each Light 2D, under Normal Maps, set Quality to Fast or Accurate.
For flat, hand-shaded facets under 2D lights, keep Normal Map Steps low (3 to 5). Set it to 1 for smooth shading.

Tips

  • Hard cel shading: Directional Light Lighting Steps 1, Light Threshold around 0.35, and a low Global Light Intensity for darker shadows.
  • Softer shading: raise Lighting Steps to 3 or 4 and add Dithering for the transitions.
  • Colored light: tint the Directional Light warm and the Global Light cool (or the other way round) for a sunset or night look. Turn Palette Affects Lighting on so the result stays in your palette.
  • Rim light: change Direction so the light comes from behind the sprite (watch the gizmo), then tune Backlight Strength and Backlight Width (px).
  • Every sample profile except Default and Linework has Lighting with Export Lit Sprites and Palette Affects Lighting on. Link one to a sample asset to see the settings in use.

Messages

Next steps

Export

Where sprite sheets and normal maps are written.

Pixel Cleanup

Remove stray pixels after lighting and palette.