LEARN // meshfx
What is an ORM texture
An ORM texture packs three grayscale material maps into the color channels of one image: ambient occlusion in red, roughness in green and metallic in blue. Your engine reads all three with one texture sample instead of three, which saves memory and shader work, and glTF uses the same channels for roughness and metallic.
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 data, not sRGB
- Matches glTF's metallic-roughness channels
- meshfx: measured outputs; hosted availability shown separately
01 // WHAT IT MEANS
Why pack three maps into one
Occlusion, roughness and metallic each need only one channel. Packing them into one image reduces texture reads and keeps the three maps in step when you change resolution.
The channels hold data, so the texture must be imported as linear. Imported as sRGB color, the roughness shifts and surfaces look too shiny or too matte.
02 // IN YOUR ENGINE
ORM in each engine
- Godot 4:
ORMMaterial3Dtakes one ORM texture directly. - Unreal Engine: a common convention. Split the R, G and B outputs of one texture sample into Ambient Occlusion, Roughness and Metallic, with sRGB unticked on the texture.
- Unity: URP's Lit shader wants metallic in red and smoothness (the inverse of roughness) in alpha, and HDRP's mask map uses its own layout, so remap the channels for Unity.
- three.js and glTF:
MeshStandardMaterialreads roughness from green, metalness from blue and occlusion from red, so one ORM texture can fill all three slots.
03 // SPATIAL COMPILER
meshfx and 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.
Why does my texture not show when I load it in three.js?
The mesh may lack UVs, so it shows one color. If it has UVs, load the image with TextureLoader and set flipY false for glTF.
Explore meshfx outputs
Inspect compiled meshfx outputs and their reports. Hosted meshfx runs are available in the Playground.