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.
pyrofx effects work today, and new accounts start with $5 of usage.
meshfx measures faults, checks repairs and makes LODs for a triangle budget. meshfx runs on the hosted API: try it in the 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
- Bake (precompute) or export ambient occlusion, roughness and metallic as separate grayscale images at the same resolution.
- In an image editor, make a new RGB image of that size.
- Paste occlusion into the red channel, roughness into green and metallic into blue.
- Save it as a PNG with a clear name, for example
crate_orm.png. - 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,roughnessMapandmetalnessMapon aMeshStandardMaterial. - Godot 4 has an
ORMMaterial3Dwith 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
SurfaceAppearancetakes 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.
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.