Skip to content
NormalMap Gen On-device processing

FIELD NOTES / 02

OpenGL vs DirectX Normal Maps: Choosing the Y Sign

Compare tangent-space normal conventions in Unity, Unreal Engine 5, Blender, Godot, Substance and Three.js. Diagnose reversed relief.

OpenGL and DirectX reverse the green channel, not the whole image.
OpenGL and DirectX reverse the green channel, not the whole image.

Same vector, different green channel

A tangent-space normal tells the renderer which way a surface faces relative to the mesh's UV tangents. Red holds X, green holds Y and blue holds Z. A flat patch encodes approximately as (128, 128, 255). The two common normal formats disagree on the sign of Y, not on where the texels are located. With 8-bit data the conversion is G′ = 255 − G; red and blue remain untouched. Do not mirror the image vertically or invert all three channels.

Diagnose with an asymmetric bevel

Use a plane with known UV orientation and an off-center shallow shelf; a round bump alone can be hard to read. Use a plain material, one light and no baked shadows. First sweep the light along X, then along Y. If only the north–south faces react backwards, compare green polarity. If one mirrored island fails while the rest of the mesh looks right, investigate tangent handedness, UVs and the mesh export before altering the entire texture.

Import once, not twice

In Unity start with +Y and set the texture type to Normal Map. The importer can flip green for −Y files. In Unreal Engine 5 start with −Y and use normal compression; the importer can invert green if you have +Y assets. Blender uses +Y with a tangent-space Normal Map node and a Non-Color input. Godot 4 expects positive Y in its normal texture; it is not determined by which graphics backend runs the project.

Substance and Three.js

Substance 3D Painter exposes its normal format in Project Configuration and can export either format. Confirm both your project and export template rather than guessing from the preview. In Three.js start with +Y on a new plane; the Y component of normalScale is the correction for an opposite convention. For glTF replacements keep the loader's UV orientation and inspect whether the mesh supplies tangents. Setting texture.flipY moves rows; negating normalScale.y changes a component. They are not interchangeable.

Adobe Substance 3D · Unity · Unreal Engine · Blender · Godot · Three.js

Frequently asked questions

Which channels should I invert to switch formats?

Only green. Leave blue facing out and red unchanged unless you have a separate X-axis issue.

Can a Vulkan or WebGPU project use OpenGL-style normals?

Yes. The names are conventions, not requirements imposed by the graphics API.

Why did I flip green and see no change?

Make sure the active texture was reimported and that the material uses it. A flat patch contains almost no signed Y detail to display.

Is an upside-down texture fixed by green inversion?

No. First correct its UV or row orientation; then verify the vector convention.

Explore the field notes

Studio PBR map guide Seamless textures