How to Pack ORM and Mask Map Textures (Step by Step)
A step-by-step guide to packing AO, roughness and metallic into one texture for Unreal Engine (ORM) and Unity URP or HDRP, without Photoshop.
In this article
Ambient occlusion, roughness and metallic are all greyscale maps. Keeping them as three separate textures wastes memory and costs three texture reads in every material. Packing them into one texture is standard practice in professional pipelines, and it takes about a minute once you know the layout.
This is the practical, step-by-step version. If you want the background on why the engines differ, read Texture Channel Packing: Unreal ORM vs Unity Mask Maps first.
What you need
- Your ambient occlusion map (optional)
- Your roughness map (or a smoothness map)
- Your metallic map (optional)
- For Unity HDRP, optionally a detail mask
All in the same resolution. If they differ, resize them first so pixels line up.
Step 1: choose the layout for your engine
| Target | R | G | B | A |
|---|---|---|---|---|
| Unreal Engine ORM | AO | Roughness | Metallic | – |
| Unity URP Lit | Metallic | Occlusion | – | Smoothness |
| Unity HDRP Mask Map | Metallic | AO | Detail mask | Smoothness |
Step 2: drop each map into its slot
Open the free Texture Channel Packer and choose the preset for your engine. The slot names change with the preset, so you always see "Roughness" or "Smoothness" in the right place. Drop each greyscale map into its slot.
Step 3: fill missing maps with the right default
Not every material has every map. Leave the slot empty and use a constant:
| Missing map | Use | Why |
|---|---|---|
| Ambient occlusion | White | White means "no occlusion" |
| Metallic | Black | Black means "not metal" |
| Roughness | Mid grey (around 0.5) | A neutral surface |
| Detail mask | White | Detail applies everywhere |
Using black for AO is a classic mistake: the whole surface looks dirty and dark.
Step 4: smoothness for Unity
Unity's Lit shaders use smoothness, which is the opposite of roughness:
smoothness = 1 − roughness
The Unity presets invert your roughness automatically. If you already have a smoothness map (for example exported from a Unity-targeted Substance preset), turn the invert option off for that slot.
Step 5: export and check every channel
Press Pack, then look at each channel in the preview. AO should be mostly white with dark crevices; metal parts should be white in the metallic channel. Download the PNG. PNG keeps the data exact; avoid JPG for packed masks.
Step 6: import with sRGB off
Packed masks are data, not colour. If the engine treats them as colour, it applies gamma correction and every value shifts.
Unreal Engine
- Import the texture.
- Set Compression Settings to Masks (no sRGB) and untick sRGB.
- In the material, sample once and connect R → Ambient Occlusion, G → Roughness, B → Metallic.
Unity URP
- Untick sRGB (Color Texture) and click Apply.
- Assign the texture to Metallic and keep Smoothness Source on Metallic Alpha.
- Assign the same texture to Occlusion.
Unity HDRP
- Untick sRGB (Color Texture).
- Assign the texture to the Mask Map slot.
Common mistakes
- sRGB left on: materials look too shiny or too rough.
- Roughness not inverted for Unity: shiny things look matte and matte things look shiny.
- Wrong channel order: AO ends up in roughness. Re-check the table above.
- JPG export: compression artefacts mix channels together. Use PNG.
Summary
- Pick the layout for your engine, drop the maps into their slots.
- White AO and black metallic when maps are missing.
- Invert roughness to smoothness for Unity.
- Import with sRGB off.
Frequently asked questions
Can I pack textures without Photoshop?
Yes. A channel packer tool takes your separate greyscale maps and writes them into the right channels of one PNG. You can also do it in GIMP, Substance or Blender, but a dedicated tool is faster and avoids mistakes.
What if I do not have an AO or metallic map?
Fill the channel with a constant. Use white for ambient occlusion (no occlusion) and black for metallic (non-metal). Using black for AO would make the whole surface look dark.
Why does my packed texture look wrong in Unreal?
The most common cause is sRGB. Packed textures are data, so set Compression Settings to Masks (no sRGB) and make sure sRGB is unticked.
Do I need to invert roughness for Unity?
Yes. Unity's Lit shaders read smoothness, which is 1 minus roughness. Invert your roughness map before putting it in the alpha channel.