Normal Map for GodotLocal browser processing
Source image
Original normal
Original normal
Converted normal
Converted normal

Choose a local image or try the sample.

Live preview is bounded to 512 px. Export recalculates full quality. Mesh units are illustrative.

Import / setup checklist
  • 2D: pair aligned diffuse and normal images in CanvasTexture and check the active frame.
  • 2D: verify Light2D influence, light masks, and a material that participates in lighting.
  • 3D: enable normal detail, assign the texture, and check UVs and tangent data.
  • For standard Godot 4 normals, test Y+ and avoid applying green conversion twice.
2D sprite quick path

Convention conversion and extra flip combine: two flips cancel. Settings always use the original upload.

Official workflow referenceGodot 4: standard material normals

Normal Map for Godot

Prepare a normal map for Godot with separate checks for 2D sprites and 3D materials. Upload directions, compare their Y convention, and export a normalized copy when needed. The compact sprite path connects pixel-aligned generation to CanvasTexture lighting checks without claiming that every purple image is a usable normal.

How to Get Started

Load a tangent-space normal image or the asymmetric sample. Declare whether the source is Y+ or Y−, choose the intended output, and compare the fixed-light previews. For a conventional Godot 4 standard 3D material, start with OpenGL-style Y+. Preserve alpha and enable renormalization when lengths need adjustment. Export, then choose the sprite or mesh checklist and test the texture under a movable light in your installed Godot version.

Godot Normal Map Workflow

A normal map for Godot can describe a flat sprite's local relief or fine shading on a 3D mesh. These uses share encoded directions but have different setup paths. A CanvasTexture groups 2D diffuse and normal resources, while a standard 3D material exposes its own normal feature. Keep the source file and convention notes with the project. The browser preview helps isolate data conversion; the actual node, material, lighting, and renderer still determine the result.

2D Sprite Lighting

Godot 4 CanvasTexture supports a normal texture alongside the diffuse texture for 2D lighting. Keep both images aligned in dimensions, atlas region, and animation frame. Assign the combined texture through the sprite's supported resource path, then confirm that a Light2D reaches the sprite and its lighting masks agree. An unlit canvas material or a mismatched normal frame can hide the effect. Compare one still frame before testing a whole animated sprite sheet.

Pixel-Art Sprite Quick Path

Create pixel-aligned relief in the Pixel Art Normal Map Generator instead of blurring a tiny sprite into smooth photographic detail. Preserve the silhouette and review transparent boundaries under moving light. Import matching color and normal resources and test filtering at the display scale. Enlarging only one texture breaks alignment. A normal map for Godot sprites should remain tied to the exact source frame, particularly when outlines, animation trims, or atlas margins differ.

Generate normals aligned with Godot pixel-art sprites

3D Material Normals

In a Godot 4 standard material, enable and assign normal detail according to the installed version's material controls. The official standard-material documentation describes OpenGL-style X+, Y+, Z+ normals and notes that its normal path uses red and green for compression and compatibility. The mesh still needs useful UVs and a compatible tangent basis. A custom spatial shader can decode differently, so document its expectations before applying a normal map for Godot across multiple materials.

Tangent Space and Y Convention

Tangent directions are relative to the surface frame. Changing green swaps the stored sign of the local Y component without changing the shape of the mesh. A DirectX-style Y− source needs a matching conversion for a documented Y+ path. A flip performed in both the file and import settings cancels. Use an asymmetric ridge or sprite highlight to establish the source orientation, because neither a purple thumbnail nor unit-vector statistics can identify convention automatically.

Common Sprite-Normal Problems

A highlight on the wrong side can indicate green inversion, but a highlight displaced from the sprite can indicate frame alignment instead. Dark fringes can arise from unsuitable RGB beneath transparent pixels and the filtering applied around the silhouette. Check atlas padding, alpha preservation, and import filtering before increasing normal strength. The widget preserves source alpha; it does not invent sprite coverage. Use the fixer when transparent-edge cleanup is an intentional part of asset preparation.

Review selective repair and transparent-edge cleanup

Godot 4.x Version Caveats

Godot 4.x import options and renderer capabilities can differ across minor versions and between Forward+, Mobile, and Compatibility paths. Resource names and concepts here are stable guidance, not a promise that every inspector control has the same position. Check the manual matching the installed release before configuring compression or channel remapping. A normal map for Godot tested in an editor scene should also be tested in an exported build using the project's actual renderer and target hardware.

Validator Workflow

The widget compares visible vector-length health before and after conversion using the shared five-percent tolerance. This is a limited numeric signal rather than a verdict on sprite shading. Use the validator to inspect edge differences, negative Z, and suspicious channel distributions before selecting repairs. A correctly normalized map can still be aligned to the wrong frame or use an incompatible convention. Keep those checks separate so normalization does not become a blanket response to every lighting problem.

Inspect vectors and boundaries before importing

A Controlled Godot Lighting Test

Use a simple sprite or UV plane, one light, and a known raised feature. Move the light horizontally, then vertically, and compare the normal enabled and disabled. Check masks and material lighting first if nothing changes. If only vertical response reverses, test one green inversion. If a mesh seam remains while a plane is clean, investigate UV and tangents. This controlled comparison makes a normal map for Godot easier to diagnose than a complex scene with many lights.

Export and Asset Handoff

The download is a local lossless RGBA8 PNG at original source dimensions. Exact green conversion is available with renormalization disabled; normalization rescales XYZ while preserving signed Z and alpha. Browser fallback formats can have numeric-decoding limitations, so prefer an ordinary supported numeric PNG for editing. Name the convention and retain the immutable source. Use the converter for additional channel operations, then verify the imported sprite or material on the intended renderer.

Convert additional channels with explicit controls

Frequently Asked Questions

Can the same normal file work for 2D and 3D?

Its directions may be reusable, but sprite alignment, CanvasTexture assignment, mesh tangents, and lighting require separate checks.

What convention does standard Godot 4 material use?

The official standard-material documentation specifies OpenGL-style X+, Y+, Z+. Custom shader paths should be checked independently.

Why does an animated sprite's highlight jump?

Compare the diffuse and normal frame rectangles, trim, pivot, and atlas padding. A channel flip does not fix frame alignment.

Will normalization remove transparent halos?

It repairs lengths while preserving alpha. Filtering and RGB beneath transparent edges need separate review or selective cleanup.