Invert the Green Channel of a Normal Map
Convert a DirectX normal map to OpenGL, or the other way round. Drop the file, tell the converter which way it is now, and check the result under a movable light before you download.
- Only green changes: red, blue and alpha stay as they are
- Runs in your browser: files are not uploaded
- Flip a whole folder into one ZIP
The sample is a DirectX normal map being converted to OpenGL. Flip a file twice and you get the original back.
Drag anywhere to move the light
Green channel read the wrong way: bumps look like dents. Match the export to your engine.
Advanced settings
Drop files or a whole folder here
Uses the settings above. Up to 200 files per batch, each exported at up to the export size.
How to invert the green channel
- Drop the normal map on the Source pane, or paste it with Ctrl+V. The status line under the tool says whether the file looks like a tangent-space normal map and how many of its vectors are unit length.
- Set Your file is. Choose the convention the file is in now. Not sure? Try both and keep the one where the surface looks raised, not dented, with the light in the upper left.
- Set Export as to what your engine reads (table below). If both settings are the same, the file is already right and needs no conversion.
- Drag the light across the sphere, or switch to Plane, and confirm that bumps stay bumps from every direction.
- Download. The file keeps its name and gains
_glor_dx, so the convention is written on it from now on.
Which programs read OpenGL, and which read DirectX
| Program | Reads | If your map is the other way |
|---|---|---|
| Unity | OpenGL (Y+) | Convert here, or tick Flip Green Channel in the texture's import settings (Unity docs) |
| Unreal Engine | DirectX (Y−) | Convert here, or open the texture and tick Flip Green Channel under Texture → Advanced (Unreal docs) |
| Godot 4 | OpenGL (Y+) | Convert the file. Godot's manual says a DirectX-style map "needs to be converted so its Y axis is flipped" (Godot docs) |
| Blender | OpenGL (Y+) | Convert here, or add Separate Color → Math (1 − G) → Combine Color before the Normal Map node (Blender guide) |
| glTF files | OpenGL (Y+) | Convert the file before export: the format has no flip setting, so a DirectX map lights the wrong way in every viewer |
| 3ds Max | DirectX (Y−) | Convert here |
The Unity, Unreal and Godot rows were checked against the linked documentation on 2026-11-26. Substance 3D Painter is not in the table because it asks for the normal map format when you create a project.
Flip the file, or tick the box in the engine?
Ticking Flip Green Channel in Unity or Unreal is fine for a texture that only ever lives in that one project. Convert the file itself when the setting would have to travel with it:
- You sell or share the texture. A pack that ships both
_gland_dxfiles does not depend on the buyer knowing about the setting. - You export glTF or target Godot, where the file has to be OpenGL already.
- Your library is mixed. Maps downloaded from different sites come in both conventions. Converting them once and naming them means nobody has to test each one again.
- You have a folder of them. Open Batch above and drop the folder. Every file gets its green channel inverted, and up to 200 of them come back in one ZIP, each named
_flipped.
What the converter changes in your file
| Part of the file | What happens |
|---|---|
| Green channel | Every value G becomes 255 − G. Nothing is blurred, sharpened or resampled. |
| Red, blue, alpha | Unchanged on opaque pixels. Semi-transparent pixels can shift by one level, because browsers keep canvas pixels premultiplied by alpha. |
| Size | Kept. The export size is a maximum (4096 px unless you change it): only a file larger than that is scaled down. |
| Bit depth and format | Saved as an 8-bit PNG with no sRGB tag, whatever the input was. |
| Vector length | Unchanged, unless you tick Normalize vectors under Advanced settings, which rescales every vector to length 1. |
Two optional controls go beyond a plain flip. Intensity scales the slopes of the whole map: 0.5 makes the relief half as steep, 2 doubles it, and 1 (the default) leaves every pixel alone. Normalize vectors repairs maps that were resized, painted on or saved in a lossy format, where vectors are no longer exactly one unit long. Engines normalize in the shader anyway, so this matters most before you compress a map or blend it with another one.
Inverting the green channel: questions
Is converting DirectX to OpenGL really just inverting green?
Yes. Both conventions store the same three numbers per pixel: red is the left-right tilt, blue points out of the surface, and green is the up-down tilt. They only disagree about which way green counts as up. OpenGL (Y+) stores up as more green, DirectX (Y−) as less. Replacing every green value G with 255 − G converts one into the other, and doing it again converts it back.
How do I know whether my normal map is DirectX or OpenGL?
Look at a raised shape, such as a brick or a rivet. In an OpenGL map its top edge is light green and its bottom edge is dark magenta. In a DirectX map it is the other way round. If you cannot tell by eye, use the preview above: set Your file is to each option in turn and keep the one where the surface looks raised with the light coming from the upper left.
Lighting looks right from the sides but wrong from above and below. Is that the green channel?
Yes, that is the typical sign. Red carries left and right, so side lighting still works; only up and down are swapped. If every direction looks wrong and the whole surface seems pressed in, the height was read upside down when the map was made. That is a different problem, and flipping green only fixes half of it: regenerate the map with Invert height in the main generator.
Can I invert the green channel in Photoshop or GIMP instead?
Yes, for one file it takes a few clicks. In Photoshop open the Channels panel, select Green, and choose Image → Adjustments → Invert (Ctrl+I), then select RGB again. In GIMP open Colors → Curves, choose the Green channel and drag the line so it runs from the top left to the bottom right. This page is for when you have no image editor at hand, want to see the result lit before saving, or have a folder of maps to convert.
Does it work with 16-bit PNG, TGA, DDS or EXR files?
No. The converter reads what a browser can decode: PNG, JPG, WebP, GIF and BMP. Browsers read 16-bit PNG files at 8 bits per channel, so the output is always an 8-bit PNG, and they cannot open TGA, DDS or EXR at all. For those formats use the Flip Green Channel setting in Unity or Unreal, or invert the channel in the program that made the file.
Should I save the converted map as JPG to keep it small?
No. We re-saved the brick sample on this page as a JPEG at quality 90 and only 34% of its vectors were still within 5% of unit length; lossy WebP at quality 90 gave 33%. The detail of a normal map sits in the differences between red, green and blue, which both formats treat as color and store at half resolution. Keep PNG as the master and let the engine compress it with a normal-map format such as BC5.