make_normal_map
Generate a normal map from Aseprite layers or visible art so 2D sprites react to moving lights in Godot and Unity, with adjustable bevel, detail, and strength.
Instructions
Make a normal map so the art reacts to 2D lights in Godot and Unity: a torch
moving past shades it. Forms round off over bevel pixels from their
outline, detail (0-1) lets bright areas stand forward, and strength
steepens it all. It goes on a hidden "Normal map" layer, and save_path
also writes it as a PNG strip matching an exported sprite sheet (frames side
by side). In Godot, set it as the normal map of a CanvasTexture whose diffuse
is the sprite; in Unity, add it to the sprite's Secondary Textures as
_NormalMap. Made from layer, or everything visible by default.
One undo step. Headless: pass file.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "make_normal_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | ||
| bevel | No | ||
| layer | No | ||
| detail | No | ||
| strength | No | ||
| save_path | No | ||
| all_frames | No |