Appearance
Sprite lighting, particles and shaders
Start with the effect you need. A torch needs changing flame shapes and light. A hit needs a readable impact. A character turning in a 3D world needs a suitable viewing angle. Each places different demands on the source artwork.
SPRITE WORKSHOP
Light the dungeon
Move across the scene to move the light
Inspect the rendering
The shader lights a sprite scene using an illustrative height field authored for this demo. The normal view shows the directions derived from that field. These maps are not supplied with the packs. A production character needs normals authored for each pose.
Fireburst combines moving particles with emission. Freeze changes the light and character color. Dissolve applies a noise threshold to the character mask. The display runs at 384 × 224 with nearest-neighbor sampling.
Art: Tiny Dungeon by Kenney and Pixel Adventure by Pixel Frog, CC0. Scene, height field and effects by Cinevva.
Normal maps and moving light
A normal map stores a direction for each pixel. Red, green and blue encode the X, Y and Z components. Decode the sampled value from 0–1 to −1–1, normalize it, then compare it with the direction to the light. For a simple diffuse response, the brightness term is max(dot(normal, lightDirection), 0).
| Map | Data it carries | Import treatment |
|---|---|---|
| Color / albedo | Surface color | Usually sRGB, decoded before linear lighting |
| Normal | Surface direction | Linear data, with the expected axis convention |
| Height | Relative elevation | Linear data. Slopes can be converted to normals |
| Emission | Areas that glow | Color and intensity handled by the material |
| Mask | Material or effect membership | Data values, such as a character-only dissolve mask |
The demo derives normals from a simple authored height field. It illustrates changing light direction and surface response. A character’s production maps need to follow each animation pose. Converting brightness directly to height can mistake a painted shadow or a dark stripe for a depression.
Three ways to author the maps
Paint surface directions. Paint the normal map alongside the color sprite. This gives precise control over a stylized cheek, armor plate or beveled tile, but every changing pose needs corresponding work.
Build a height map. Paint raised and recessed areas, then derive slopes. This works well for relief-like surfaces such as masonry. A height field cannot represent every possible overhang or side-facing surface. Laigter provides tools for generating and previewing lighting maps from 2D art.
Render a 3D source. Render color and surface directions from the same camera, frame and pose. Transform normals into the coordinate space your sprite shader expects. World-space values cannot be used as camera-facing sprite normals without the corresponding conversion. Blender documents its render passes and vector transforms.
Keep every frame paired
Color and normal frames need matching dimensions, margins, trimming, pivots and frame order. A shared atlas layout prevents the character’s arm from receiving the normal data for a different pose. When you mirror a sprite, transform the corresponding normal direction too. Test a light from the left, right, above and below to catch a reversed green channel or mirrored X direction.
In Godot, use a CanvasTexture with diffuse_texture and normal_texture, then let a Light2D affect it. Godot documents X+, Y+, Z+ normals. For an animation atlas, keep the paired maps under the same frame selection. CanvasTexture reference.
In Unity’s URP 2D Renderer, add a secondary normal texture and use a compatible sprite-lit material. Match the secondary texture name expected by the shader and enable the light’s normal-map support. Follow the instructions for your installed Unity and URP versions. Unity’s secondary-texture setup.
Normal maps change shading inside the sprite. They do not change its silhouette or automatically cast a shadow onto the floor. Godot, for example, uses LightOccluder2D to describe shadow casters separately. 2D lights and shadows.
Flipbooks and particles
A flipbook is a sequence of images. A particle emitter creates instances with their own position, velocity, age and size. A particle can play a flipbook, so a smoke puff can change shape while it drifts.
| Effect | Useful construction | Failure to watch for |
|---|---|---|
| Footstep dust | A short burst near the foot contact | Dust covering the next landing point |
| Fire | Flame flipbook, ember particles and a light | The light persisting after the flame disappears |
| Smoke | Expanding, fading sprites with alpha blending | Dark or bright fringes from an alpha mismatch |
| Explosion | Impact frame, expanding shape, fragments and smoke | Too much overlapping transparency |
| Rain or snow | Continuous emission with varying speed and depth | Uniform rows or particles appearing inside solid scenery |
| Sword trail | Authored arc or a trail attached to the weapon | The visible swing disagreeing with hit timing |
Use a stable random seed while tuning so two settings can be compared against the same burst. Keep the effect’s simulation separate from its playback frame rate. A 12-frame explosion should take the same duration on a 60 Hz and a 120 Hz display.
Large transparent quads cost work even when much of their image is empty. Check overdraw at the busiest point of the effect, especially when several enemies explode together. Godot’s particle documentation describes CPU and GPU emitters and texture animation. Cinevva’s particle tool provides a separate place to experiment with effects.
Shaders for color, edges and distortion
| Shader operation | How it works | Practical limit |
|---|---|---|
| Palette swap | Replace indexed colors or sample a palette lookup | Preserve shadows and highlights within the ramp |
| Hit flash | Blend visible sprite pixels toward a chosen color | Keep the flash short and avoid repeated full-screen pulses |
| Outline | Sample neighboring alpha to find a boundary | The sprite needs padding around its silhouette |
| Dissolve | Compare a noise value with a threshold | Keep noise stable and restrict it to the intended object |
| Water or heat distortion | Offset texture or screen-sampling coordinates | Avoid reading adjacent atlas sprites or unavailable scene pixels |
| Rim light | Emphasize edges according to a normal and view direction | Needs normals that describe the intended shape |
A dissolve can use the same noise sample for visibility and the bright edge. Pixels below the threshold disappear. Pixels just above it receive an edge color. Clamp sampling to the sprite’s atlas rectangle, or provide enough padding, so neighboring sprites cannot leak into the effect.
Choose the blend mode with the background in view. Additive particles can suit luminous sparks. Smoke generally needs alpha blending because it must cover part of the scene. Check whether the art and material use straight or premultiplied alpha. A mismatch often creates fringes around soft edges. Godot documents its 2D blend modes and texture inputs in the CanvasItem shader reference. Explore shader examples in Cinevva’s shader tool.
Animation and sprites in 3D
Frame-by-frame animation gives the artist control of each silhouette. Skeletal animation moves and deforms separate parts, which can help with equipment and long animations but may need corrective drawings at joints. Prerendering a 3D character gives repeatable poses and camera angles, followed by any pixel cleanup the style requires.
For a 2.5D scene, place sprites on planes among 3D geometry. Decide whether they always face the camera, rotate only around a vertical axis, or switch between directional frames. A freely rotating camera can reveal the flat plane. Shadows, depth sorting and floor contact also need deliberate treatment.
The iconic-games examples compare three documented production approaches. To try them with free artwork, return to the pack directory and choose a small scene with one character and one effect.