Skip to main content
All posts
Engine workflows

Unreal ORM vs Unity HDRP Mask Map: RGBA Packing Guide

Map all four channels correctly, convert roughness to smoothness, and test the result in Unreal, HDRP or URP.

Quick answer

A common Unreal ORM packs occlusion into red, roughness into green, and metallic into blue. Unity HDRP’s Mask Map stores metallic in red, occlusion in green, detail mask in blue, and smoothness in alpha. Apply smoothness = 1 − roughness in linear values, then verify the import settings.

How do Unreal, HDRP, and URP differ?

DestinationRGBA
Typical Unreal ORMOcclusionRoughnessMetallicUsually unused
Unity HDRP Mask MapMetallicOcclusionDetail MaskSmoothness
Unity URP Lit metallic textureMetallicUnused by this inputUnused by this inputSmoothness if configured
Unity URP Lit occlusion textureUnused by this inputOcclusionUnused by this inputUnused by this input

Unity supports several rendering pipelines. Check the material's actual shader before renaming an HDRP Mask Map for a URP project. An Unreal material graph can wire channels differently from ORM. Verify the old material wiring when you have access to it.

Four stacked metal material swatches illustrating packed texture channels
Packing changes channel placement, and Unity stores the complement of roughness.

What pixel values should a conversion produce?

Start with a deliberately easy test swatch. An ORM pixel (220, 64, 32) yields HDRP (32, 220, 255, 191) when keeping the default white detail mask. In 8-bit data, 255 − 64 = 191. Roughness 255 becomes smoothness 0. If your editor displays the PNG as transparent in that region, use a channel viewer to verify that RGB remains present. Its alpha describes smoothness.

How do I pack and verify the texture?

  1. Open the channel packer and select the source layout. Use Convert for an existing ORM. Use Pack for separate grayscale maps of the same size.
  2. Inspect the RGB and alpha previews independently. Add a separate detail texture when the HDRP material uses a limited detail region.
  3. Export PNG and import it as data. Disable sRGB on packed masks in engines that expose the setting.
  4. Assign the material inputs and test against a known matte patch, a metallic patch and an occluded area. If a patch is wrong, inspect the relevant channel before adjusting scalar values.
  5. If compression changes small values, compare the source and the engine's platform format. Use a format that preserves alpha when smoothness is there.

Open the free browser tool to run the conversion with your own texture.

Frequently asked questions

Can I round-trip an HDRP detail mask through ORM?

Standard ORM only has slots for AO, roughness and metalness. Export the blue HDRP detail channel as a separate PNG if you need to restore it later. The three shared channels can round-trip with the proper inversion.

Should I pack Base Color or Normal into an empty channel?

Base Color needs its intended color handling, while a tangent normal needs its own vector decode. Leave them in their existing textures unless the material graph explicitly implements a different packing scheme.

References