Lighting art

From claude-dev-suite/claude-dev-suite · View interactive version

Lighting art is an AI agent skill from the GitHub repository claude-dev-suite/claude-dev-suite. Painting 2D art for dynamic lighting: workflow for Unity 2D Lights / Godot CanvasLight, normal map authoring (Sprite Lamp / hand-painted), separation in layers (diffuse / normal / emissive / mask), self- shadowing in pixel art, day/night palette swaps vs realtime light mixing, glow / emissive layers

How to use this skill

Skill file

2D Lighting (Art Side)

Two paradigms for 2D lighting:

  1. Baked into the sprite (classic). Highlights and shadows painted

directly. Fast, predictable, locks the lighting direction.

  1. Dynamic (engine 2D Lights). Sprite is "neutral" diffuse, engine

computes lighting from scene lights at runtime. Allows day/night

shifts, point lights, dynamic shadows.

Modern indie pixel art usually combines both: baked rim light + dynamic

fill from scene Lights.

Engine systems

| Engine | 2D lighting system |

|--------|-------------------|

| Unity URP 2D | 2D Renderer Data + Light 2D components (Point/Sprite/Freeform/Parametric/Global). Normal map secondary texture. Shadow Caster 2D for occlusion. |

| Godot 4 | PointLight2D / DirectionalLight2D + LightOccluder2D for shadows. Normal map via shader. |

| Defold | Custom shaders. |

| Phaser / web | Pixi.js light filter or custom shader. |

Sprite layer separation for dynamic lighting

A "lit-aware" sprite needs (at minimum):

  1. Diffuse / albedo: the base color. Drawn flat, no baked shadows.
  2. Normal map: surface direction encoded in RGB. (See

seamless-textures/SKILL.md for authoring.)

  1. (Optional) Emissive / glow mask: pixels that should ignore

lighting and stay bright (street lamps, lava, magic). RGB =

emission color, alpha = mask.

  1. (Optional) Specular / smoothness: where light reflects.
  2. (Optional) Self-shadow / occlusion: which surfaces of the sprite

shadow other surfaces of the sprite. Rare in pixel art.

Most pixel-art games stop at diffuse + normal + emissive. Adding more

is diminishing returns vs hand-painting.

Painting flat diffuse for dynamic lighting

If you'll use 2D Lights, the diffuse should be flat-lit — single

ambient lighting condition, no strong shadow side. The engine adds

the directional shading.

Typical workflow:

  1. Paint with uniform mid-tone shading (no strong light direction).
  2. Add ambient occlusion (where surfaces meet — under hat brim,

under chin, in joints).

  1. Don't paint a strong rim/highlight; engine will do it.

If you instead want classic fully-shaded diffuse, the engine's 2D

Light affects it ON TOP of the bake — works but the result is

double-shaded (cool effect for dramatic lighting; bad for naturalistic).

Normal map workflow

See seamless-textures/SKILL.md for normal map authoring options

(Sprite Lamp, Sprite DLight, Materialize, hand-paint).

For pixel art: normals on small sprites can look strange because

neighboring pixels have different normals → light shifts pixel-by-pixel

unevenly. Solutions:

smoothly across small sprites. Loses some surface detail but feels

more cohesive.

back) should have uniform normal (#8080FF), not noisy.

from camera, use stronger Z-component variation; flat interior keeps

uniform.

Self-shadowing in pixel art

Real-time self-shadow on a pixel sprite is usually not worth it.

Dynamic shadows on a 32×32 character look noisy, low-resolution, jittery

as the light moves.

Common approaches:

Bake self-shadow into diffuse

The cheap way. Paint the sprite with shadow side darker (lit assumed

from upper-left). Limits dynamic lighting (always upper-left feel) but

looks sharp.

Use separate top-light and rim-light layers

Author two diffuse variants: top-lit and rim-lit. Engine blends based

on light direction. Doubles art cost but feels alive.

Skip self-shadow, rely on directional fill

Flat-painted diffuse + 2D Light gives a soft directional fill. Sprite

doesn't really self-shadow, but the rim-light hint feels lit. Works for

most indie pixel art.

Emissive / glow

Emissive pixels ignore lighting and stay full-bright. Use cases:

Authoring:

In Unity URP 2D: assign emissive secondary texture in Sprite Renderer.

Day / night palette swap vs realtime mixing

Palette swap approach

noon and night).

Realtime light mixing

Hybrid (most modern indie)

uses cool ramp).

Stardew Valley uses palette swap (retro fit). Hyper Light Drifter uses

realtime. Hollow Knight uses realtime + heavy emissive.

Glow / bloom

Two ways to achieve "glow":

  1. Pre-baked glow halo: paint a halo around emissive pixels. No

shader needed. Cheaper but static.

  1. Post-process bloom: extract bright pixels, blur, add back.

Looks dynamic, requires post-process pass (URP volume Bloom override

in Unity, post-process shader in Godot).

For pixel art: option 2 conflicts with the pixel-perfect aesthetic

(blur softens pixels). Common compromise: enable bloom only on

emissive layer, not on the diffuse.

Common bugs

shadow stacks. Solution: paint flat diffuse OR flat rim, not both.

direction. Toggle Y-flip in Sprite Renderer / shader.

emissive. Solution: emissive added AFTER lighting, not multiplied.

emissive mask only.

Smooth the normal map.

See also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.