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.

100% Local Browser Engine · 0 Bytes Uploaded
Instant Deterministic Output
Required ActionInvert Green Channel (G = 255 - G)OpenGL (+Y) → DirectX (-Y)
Target Engine Import NoteCompression = Normalmap (BC5); Flip Green Channel option available in texture editor.Always keep Red (+X) unchanged
normal.g = 1.0 - normal.g; // Convert Y handedness
Flip Green Channel Online

Complete 9-engine tangent-space normal map coordinate reference

Engine / DCC AppY ConventionImport Color SpaceNotes
Blender (Cycles/EEVEE)OpenGL (+Y)Non-ColorUse Normal Map node
Unity (URP / HDRP)OpenGL (+Y)Normal MapAuto-swizzles DXT5nm internally
Unreal Engine 5DirectX (-Y)Normalmap (BC5)Flip Green toggle in Texture Editor
Godot 4 / Three.js / RobloxOpenGL (+Y)Linear / NoColorSpaceglTF 2.0 standard
Substance Painter / 3ds MaxDirectX (-Y)LinearChoose 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.

More free local PBR & normal map tools