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?
| Destination | R | G | B | A |
|---|---|---|---|---|
| Typical Unreal ORM | Occlusion | Roughness | Metallic | Usually unused |
| Unity HDRP Mask Map | Metallic | Occlusion | Detail Mask | Smoothness |
| Unity URP Lit metallic texture | Metallic | Unused by this input | Unused by this input | Smoothness if configured |
| Unity URP Lit occlusion texture | Unused by this input | Occlusion | Unused by this input | Unused 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.
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?
- 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.
- Inspect the RGB and alpha previews independently. Add a separate detail texture when the HDRP material uses a limited detail region.
- Export PNG and import it as data. Disable sRGB on packed masks in engines that expose the setting.
- 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.
- 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.