OpenGL vs DirectX Normal Maps: Which Engine Wants Which, and How to Tell
A tangent-space normal map stores one direction per pixel in three channels: red for left–right, green for up–down along the texture, blue for straight out of the surface. Every major engine agrees on red and blue. They disagree on green, and that single channel is the whole difference between an "OpenGL" and a "DirectX" normal map.
- OpenGL style (Y+, "green up"): a higher green value means the surface tips toward the top of the texture.
- DirectX style (Y−, "green down"): a higher green value means it tips toward the bottom.
Converting one to the other is one operation on every pixel: G → 1 − G (255 − G in an 8-bit file, 65535 − G in a 16-bit one). Red, blue and alpha stay as they are. The names come from the graphics APIs' texture coordinate habits, but today they're just labels: Unreal renders on Vulkan and Metal too and still expects its maps green-down.
Which engine expects which
These are quoted from each tool's own documentation (checked December 2026).
| Engine or tool | Expects | What the docs say |
|---|---|---|
| Unity | OpenGL (Y+) | "Unity uses Y+ normal maps, sometimes known as OpenGL format." (Unity Manual) |
| Godot 4 | OpenGL (Y+) | "Godot requires the normal map to use the X+, Y+ and Z+ coordinates, this is known as OpenGL style." (Godot docs) |
| Blender | OpenGL (Y+) | "Blender uses the OpenGL convention by default for rendering and baking, where the Y axis in the green channel points up." (Blender Manual) |
| Unreal Engine | DirectX (Y−) | Epic's Fab requires normal maps "in the DirectX convention by default" and assumes DirectX when the file name has no suffix. (Fab docs) |
| 3ds Max Normal Bump | Green = down | "Green indicates down (larger values) versus up (smaller values)" by default, with a Flip Green (Y) option. (Autodesk Help) |
A note on Unreal: the engine documentation we checked never states the direction in one sentence. What it does document is a Flip Green Channel setting on textures, "useful for some normal maps" (Texture Asset Editor), and Epic's own asset store treats normal maps as DirectX unless they're labelled otherwise. That's the convention we export for Unreal.
What the wrong one looks like
Picture a raised bump lit from above. Its upper slope faces the top of the texture, so its normals tip up: an OpenGL map writes green above half there, a DirectX map writes green below half. Feed a DirectX map to an OpenGL engine and every upward-facing slope is read as facing down. The light from above now darkens the top of each bump and brightens the bottom, and the eye reads that as a dent.
Two things make this easy to miss. A light from the side hides it, because red is unaffected. And many textures (stone, bark, noise) look plausible either way until you put a strong light above them. The green channel flipper has diagrams of both conventions and a live demo where you can switch between them and drag the light.
How to tell which one a file is
Look at a raised shape
Find something you know sticks out: a rivet, a brick face, a button. In an OpenGL map, the top edge of a raised shape is lighter green and the bottom edge darker. In a DirectX map it's the other way round. Red doesn't help: the left edge is darker red and the right edge lighter in both.
Read the file name
Many asset libraries add a suffix. Fab, for example, recognizes suffixes such as "gl", "opengl" or "normalsgl" for OpenGL and "dx", "directx" or "normdx" for DirectX, and assumes DirectX when there is none. Our exports always end in "_Normal_OpenGL" or "_Normal_DirectX".
Let the math decide
A normal map of a real surface is the slope field of some height map, and a slope field can't twist: the change of the left–right slope as you move up must equal the change of the up–down slope as you move right. Read with the wrong green direction, those two numbers come out with opposite signs. The flipper measures the mismatch under both readings and reports the convention that fits, with how much better it fits. On clean maps like the ones our tests use, the right reading fits more than ten times better; heavy JPEG compression or hand-painted detail lowers that, and below 1.5 the tool doesn't call it. When every feature in a map runs straight across or straight down (plain bricks, straight planks), both readings fit equally and it tells you it can't decide.
How to fix a map in each tool
- Unreal Engine: open the texture and tick Flip Green Channel, or import a DirectX file. Also check that Compression Settings is Normalmap; the 4.27 docs describe it as "used to compress normal maps" (Texture compression settings).
- Unity: set Texture Type to Normal map; Unity then treats it as linear data. For a DirectX file, the importer can invert green: the scripting docs describe TextureImporter.flipGreenChannel as "useful if the normal map uses a different convention to what Unity expects" (Unity Scripting API).
- Godot 4: for a DirectX-style map, the docs say to enable the "Normal Map Invert Y" import option under Process (Importing images).
- Blender: use an OpenGL file, set the Image Texture to Non-Color, and connect it through a Normal Map node.
- 3ds Max: in a Normal Bump map, Flip Green (Y) reverses up and down.
Every engine above has an import switch, but flipping the file is the more portable fix: an asset that goes to several engines or into a pack carries its convention in its name, and nobody has to remember a checkbox.
Two mistakes that look like a green-channel problem
The map is read as color. If a normal map is imported as sRGB, the engine applies a gamma curve to direction data. Flat areas stop being flat and the lighting looks weak and tilted no matter which way green points. Unity's Normal map type, Unreal's Normalmap compression and Blender's Non-Color setting all prevent it. Our PNGs carry no gamma or color-profile chunk, but the engine's import setting still decides.
It isn't a tangent-space map. Object-space normal maps are rainbow colored instead of mostly lavender. They store directions in the model's own axes, so the green-channel convention doesn't apply, and flipping green breaks them.
Make maps in the right convention from the start
The normal map generator has export presets for Unity, Unity HDRP, Unreal Engine, Godot 4 and Blender that pick the convention and the packed-map layout for you, and its Dome test sample gives you a map you can drop into your engine to check the direction before you texture anything else. For grayscale height maps, the height map to normal map converter does the same with 16-bit input.
Normal, height, AO and roughness maps from any image, exported the way your engine reads them.