OpenGL (+Y) vs DirectX (-Y)
Interactive Normal Map Swizzle & Engine Coordinate Matrix
Never second-guess whether to flip your normal map's green channel again. Pick your authoring app and target 3D engine to get the exact Y-axis swizzle action, import checklist, and GLSL/HLSL snippet.
normal.g = 1.0 - normal.g; // Convert Y handedness
Complete 9-engine tangent-space normal map coordinate reference
| Engine / DCC App | Y Convention | Import Color Space | Notes |
|---|---|---|---|
| Blender (Cycles/EEVEE) | OpenGL (+Y) | Non-Color | Use Normal Map node |
| Unity (URP / HDRP) | OpenGL (+Y) | Normal Map | Auto-swizzles DXT5nm internally |
| Unreal Engine 5 | DirectX (-Y) | Normalmap (BC5) | Flip Green toggle in Texture Editor |
| Godot 4 / Three.js / Roblox | OpenGL (+Y) | Linear / NoColorSpace | glTF 2.0 standard |
| Substance Painter / 3ds Max | DirectX (-Y) | Linear | Choose OpenGL preset on export |
How to spot a flipped green channel inside your 3D viewport in 5 seconds
Place a single directional light above your asset. If extruded bricks, rivets, or embossed letters appear carved inward (lit on the bottom edge instead of the top edge), your normal map's green (Y) channel has the opposite handedness from your engine.
Converting normal maps cleanly without re-baking
Whenever this matrix flags Invert Green Channel, open our local OpenGL to DirectX Converter to invert G = 255 - G losslessly in your browser without touching Red or Blue.
Frequently asked questions
Does Unreal Engine 5 use DirectX or OpenGL normal maps?
Unreal Engine 5 uses DirectX (-Y) tangent-space normal maps by default, though you can check Flip Green Channel per texture asset.
Which normal map convention does glTF 2.0 and Three.js require?
The glTF 2.0 specification strictly requires OpenGL (+Y) tangent-space normal maps.
Do I ever need to flip the Red (X) channel between Blender and Unreal?
No. Both OpenGL and DirectX normal maps share +X pointing right; only the Green (Y) axis differs.
Can Normal Map Studio export directly in my target engine's convention?
Yes—our main Normal Map Generator lets you toggle OpenGL (+Y) or DirectX (-Y) before exporting your ZIP pack.