New: 36 free tools for Unreal Engine and Unity developers.Try them →

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
  1. What you need
  2. Step 1: choose the layout for your engine
  3. Step 2: drop each map into its slot
  4. Step 3: fill missing maps with the right default
  5. Step 4: smoothness for Unity
  6. Step 5: export and check every channel
  7. Step 6: import with sRGB off
  8. Common mistakes
  9. Summary
  10. FAQ

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

TargetRGBA
Unreal Engine ORMAORoughnessMetallic–
Unity URP LitMetallicOcclusion–Smoothness
Unity HDRP Mask MapMetallicAODetail maskSmoothness

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 mapUseWhy
Ambient occlusionWhiteWhite means "no occlusion"
MetallicBlackBlack means "not metal"
RoughnessMid grey (around 0.5)A neutral surface
Detail maskWhiteDetail 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

  1. Import the texture.
  2. Set Compression Settings to Masks (no sRGB) and untick sRGB.
  3. In the material, sample once and connect R → Ambient Occlusion, G → Roughness, B → Metallic.

Unity URP

  1. Untick sRGB (Color Texture) and click Apply.
  2. Assign the texture to Metallic and keep Smoothness Source on Metallic Alpha.
  3. Assign the same texture to Occlusion.

Unity HDRP

  1. Untick sRGB (Color Texture).
  2. 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.

  • #textures
  • #pbr
  • #unreal engine
  • #unity
Written by Renish

Indie Unreal Engine developer and founder of Tvashta Studio. Builds the Shopping Simulator Kit plugin in UE5 C++ and the free tools on this site, and writes these guides from that work for Unreal Engine and Unity developers. More about the studio.

Related articles

All articles →