---
title: "How to fix flipped normals in a GLB file"
description: "glTF draws counter-clockwise front faces and culls the rest unless a material is doubleSided. Fix face orientation, apply mirrored scale, export again."
canonical: https://appliedmanifold.com/mesh/fix-flipped-normals-glb/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [meshfx](https://appliedmanifold.com/mesh/)
3.  GLB normals

meshfx // GLB NORMALS

# How to fix flipped normals in a GLB file

You fix flipped normals in a GLB by correcting face orientation in your 3D editor and exporting again, because glTF draws only counter-clockwise front faces unless a material is marked `doubleSided`. Check for a negative scale too: in glTF, a mirrored node reverses the winding, which turns everything under it inside out.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx docs →](https://appliedmanifold.com/docs/mesh/)

pyrofx effects work today, and new accounts start with $5 of usage.

**MODULE // meshfx AVAILABLE**

meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the [Playground](https://appliedmanifold.com/playground/).

-   Front face: counter-clockwise winding
-   Material `doubleSided` is false by default
-   A negative node scale reverses the winding

01 // WHY

## What decides the front face in glTF

The glTF spec defines the front face by vertex order: counter-clockwise as seen from the front. The stored normals (the `NORMAL` attribute) only affect lighting, so a face can be culled for its winding while its normal points the right way. When a file has no normals, the spec tells viewers to compute flat ones from the winding.

A node whose transform mirrors the model, such as a scale of -1 on one axis, reverses the winding of every mesh under it.

02 // HOW TO

## Fix the faces and export the GLB

1.  Open the GLB in a glTF viewer or your engine and note whether faces vanish (winding) or draw dark (normals).
2.  Import it into your 3D editor, turn on face orientation, and apply any negative scale.
3.  Recalculate normals outside, and flip faces that stay wrong.
4.  Export the GLB with normals included.
5.  Leave materials single-sided unless the mesh is a card, such as leaves or a flag; for those, turn on the material's double-sided option so the exporter writes `doubleSided: true`.

meshfx retains existing UVs during triangle reduction. Create the texture atlas in your editor. Hosted meshfx runs are available in the Playground.

03 // IN THE ENGINE

## How engines read doubleSided

GLTFLoader in three.js turns `doubleSided: true` into `side: THREE.DoubleSide`, and Godot's importer sets the material's Cull Mode to Disabled. Both cull back faces otherwise. Setting `material.side = THREE.DoubleSide` yourself hides missing faces in three.js, but their lighting stays wrong until the file is fixed.

If the model is still missing in three.js, measure it with `Box3`, check the camera's `near` value, and check whether it loaded far from the origin.

04 // RELATED

## Related pages

-   [Mesh normals AvailableNormals are the directions a mesh's faces and vertices point, used for lighting and culling, and flipped ones look black or vanish.](https://appliedmanifold.com/learn/normals/)
-   [glTF and GLB AvailableglTF is an open 3D format for meshes, materials and animation, and GLB is the same data packed into one binary file.](https://appliedmanifold.com/learn/glb-gltf/)
-   [Flipped normals AvailableRecalculate normals outside, flip the faces left over and apply mirrored scale so a model draws correctly in any engine.](https://appliedmanifold.com/mesh/fix-flipped-normals/)
-   [FBX normals AvailableApply mirrored scale, recalculate normals, export the FBX with normals, and set the Unity or Unreal Engine normal import option.](https://appliedmanifold.com/mesh/fix-flipped-normals-fbx/)
-   [Wrong size in three.js Availablethree.js has no fixed unit, so measure a loaded model with Box3 and fix the GLB or scale the loaded scene once.](https://appliedmanifold.com/mesh/model-wrong-size-threejs/)
-   [Invisible in Godot AvailableCheck flipped normals, scale, Camera3D Near and Far, the material and the node position when a model is invisible in Godot.](https://appliedmanifold.com/mesh/model-invisible-godot/)
-   [meshfxmeshfx reads an input model, repairs surface faults and compiles reduced GLB levels of detail for Godot, three.js or any glTF loader.](https://appliedmanifold.com/docs/mesh/)

[All pages in meshfx →](https://appliedmanifold.com/mesh/)

[← USD pivot](https://appliedmanifold.com/mesh/fix-pivot-point-usd/)[FBX normals →](https://appliedmanifold.com/mesh/fix-flipped-normals-fbx/)

05 // FAQ

## GLB normals questions

[All questions →](https://appliedmanifold.com/faq/)

**README.FIX\_FLIPPED\_NORMALS\_GLB**

### How do I flip normals in three.js?

Fix the GLB in your 3D editor and export again. In code, `THREE.DoubleSide` hides the symptom while a real flip reverses triangle index order.

### How do I fix flipped normals on a GLB in Godot?

Fix the mesh in your 3D editor and reimport. Setting the material's Cull Mode to Disabled draws both sides as a temporary stopgap.

### Why does my GLB look black or inside out in the engine?

Either its normals point inward, darkening lighting or its winding is reversed by a mirrored node, culling front faces. Apply scale and recalculate normals.

### Why are parts of my glTF missing when three.js loads it?

Faces wound the wrong way are culled because `doubleSided` is false by default. Check face orientation in your 3D editor, camera near plane and size.

## Explore meshfx outputs

Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys) [meshfx →](https://appliedmanifold.com/docs/mesh/)

[All effects, guides and explainers →](https://appliedmanifold.com/effects/)
