Generate Normal Maps
Generate free normal maps for dynamic 2D lighting in Godot, Unity, and other engines, from your AI agent, the Pixel Art Generator, or the open-source generator.
A normal map tells a game engine which way each pixel faces, so moving lights can shade a flat sprite as if it had volume. Normal maps are free.

With your AI agent
Make sure your AI agent is connected.
Ask your agent for normal maps:
Create normal maps for every sprite in assets/sprites.Make the normal map of the run animation I generated in Sprite Fusion.Create a DirectX normal map of this crate for Unreal Engine.
Your agent uses the free create_normal_map tool:
- Each map keeps the sprite's size and transparency, and your agent saves it next to the sprite, such as
knight_n.png - An animation's map keeps its sprite sheet layout
- Sprites and frames can be up to 1024×1024 pixels
- Your agent can set the relief strength,
1.5by default, and the OpenGL or DirectX convention - Scripts and CI can call
POST /normal-mapsinstead
In the editor
Select a sprite or an animation in the Pixel Art Generator. Then right-click the canvas with the Hand tool and choose Generate normals, or click Normal map in its info panel.
The PNG downloads at the sprite's size, with its transparency. An animation gets a sprite sheet with the same frames. Normal maps aren't added to your asset history.
Open source
The generator, Sprite Normals, is free and open source under MIT License.
- Browser: our normal map generator runs it in your browser, without an account
- CLI:
spritefusion-sprite-normals sprite.pngsavessprite_n.pngbeside the sprite - WebAssembly:
generate_normal_map(inputBytes, "{}")returns the normal map PNG
Use it in your engine
Normal maps use the OpenGL convention that Godot and Unity expect, by default. Import them without sRGB, compression, or filtering.
- Godot: put the sprite and its normal map in a
CanvasTexture, assign it to yourSprite2D, and add aPointLight2D. - Unity (URP 2D): add the normal map to the sprite as a secondary texture named
_NormalMap, and set your 2D lights' normal map quality to Fast or Accurate. - Unreal Engine: use the DirectX convention. Ask your agent for it, or choose
DirectXin the normal map generator.