---
title: "How to pack textures into an ORM map | Spatial Compiler"
description: "Pack ambient occlusion into red, roughness into green and metallic into blue of one linear image, so one ORM texture replaces three in Godot, Unreal, glTF."
canonical: https://appliedmanifold.com/mesh/pack-textures-orm/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [meshfx](https://appliedmanifold.com/mesh/)
3.  Pack an ORM texture

meshfx // ORM

# How to pack occlusion, roughness and metallic into one ORM texture

You pack an ORM texture by putting ambient occlusion in the red channel, roughness in green and metallic in blue of one image, each from a grayscale map at the same size and UV layout. Save it as linear data rather than sRGB color, and one texture replaces three in Godot, Unreal Engine and glTF materials.

[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/).

-   R: occlusion, G: roughness, B: metallic
-   Import as linear, not sRGB
-   Unity URP and Roblox want other layouts

01 // BY HAND

## Pack the three maps

1.  Bake (precompute) or export ambient occlusion, roughness and metallic as separate grayscale images at the same resolution.
2.  In an image editor, make a new RGB image of that size.
3.  Paste occlusion into the red channel, roughness into green and metallic into blue.
4.  Save it as a PNG with a clear name, for example `crate_orm.png`.
5.  Import it as linear data, not color. In Unreal Engine set Compression Settings to Masks, and in other tools mark it as non-color.

02 // PER ENGINE

## Where the ORM texture goes in each engine

-   In glTF the metallic-roughness texture reads green and blue and the occlusion texture reads red, so one ORM file serves both. In three.js, assign it to `aoMap`, `roughnessMap` and `metalnessMap` on a `MeshStandardMaterial`.
-   Godot 4 has an `ORMMaterial3D` with a single ORM texture slot.
-   In Unreal Engine, sample it once in the material and wire R to Ambient Occlusion, G to Roughness and B to Metallic.
-   Unity URP's Lit shader expects metallic in red and smoothness (roughness inverted) in alpha, so repack the maps for it instead of using ORM.
-   Roblox's `SurfaceAppearance` takes separate roughness and metalness images, so keep those maps unpacked.

03 // WHY PACK

## Why pack the maps

Each of the three maps holds one channel of information. Imported as three textures, they cost three texture reads in the shader; packed, the same data is one texture and one read.

Keep the three maps on identical UVs, because packing assumes every channel lines up with the same spot on the model.

04 // meshfx

## meshfx for pack an orm texture

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

05 // RELATED

## Related pages

-   [ORM texture AvailableAn ORM texture packs ambient occlusion, roughness and metallic into the red, green and blue of one image for cheaper PBR materials.](https://appliedmanifold.com/learn/orm-texture/)
-   [Texture baking AvailableTexture baking renders detail into textures, such as a high-poly model's shape into a normal map for a low-poly game model.](https://appliedmanifold.com/learn/texture-baking/)
-   [Bake (precompute) high to low poly AvailableBake (precompute) a high-poly model's surface onto a low-poly game mesh as normal, color and occlusion maps, and fix the usual bake (precompute) errors.](https://appliedmanifold.com/mesh/bake-high-to-low-poly/)
-   [Web polycount AvailableTriangle and file size budgets for browser scenes and three.js games, and how to count what each frame draws.](https://appliedmanifold.com/mesh/polycount-web/)
-   [FBX to GLB AvailableConvert an FBX file to GLB by hand, and what changes on the way: units, axes, materials, n-gons and animation.](https://appliedmanifold.com/mesh/convert-fbx-to-glb/)
-   [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/)

[← Bake (precompute) high to low poly](https://appliedmanifold.com/mesh/bake-high-to-low-poly/)[FBX to GLB →](https://appliedmanifold.com/mesh/convert-fbx-to-glb/)

06 // FAQ

## ORM texture questions

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

**README.PACK\_TEXTURES\_ORM**

### What texture maps are commonly generated for a game model?

Normal, ambient occlusion, curvature, thickness, base color, roughness and metallic are standard. Engines often pack occlusion, roughness and metallic into one image.

### Do I need to regenerate an ORM texture after retopology?

Yes. Because the maps are laid out on the old UVs, you must transfer them again onto the new mesh's UV layout.

### How should an ORM texture be imported and compressed?

Import it as linear data, never sRGB and use a block format that preserves all three channels cleanly without distorting roughness.

### Is a flipped normal map the same as flipped normals in Unreal Engine?

No, a flipped normal map makes bumps look like dents but never hides faces. Unreal Engine expects DirectX style normal maps and can flip the green channel.

## 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/)
