PBR Texture Generator · Unity
Unity mask map generator
Make the packed textures Unity’s shaders read, from one photo or procedural: the HDRP mask map, and the metallic map with smoothness in its alpha for URP and the Built-in pipeline. It opens on the HDRP preset. Free, in your browser, no account needed.
- Free
- No account
- HDRP mask map
- URP metallic smoothness
- OpenGL normal

The HDRP mask map, channel by channel
Unity’s High Definition Render Pipeline reads four grayscale values from one RGBA texture, the mask map, so a material needs one texture slot instead of four. The Unity HDRP preset writes it as MaskMap.png:
- Red
- Metalness: white where the surface is metal.
- Green
- Ambient occlusion: dark in cracks and corners.
- Blue
- Detail mask: white everywhere, so a detail map, if you add one, shows across the whole material. With no detail map it does nothing.
- Alpha
- Smoothness, which is 1 − roughness. Unity reads smoothness, so the generator turns the roughness round for you.
Turn sRGB off for the mask map when you import it: its channels are data, not color. The preset says so under the menu.
URP and the Built-in pipeline
The Universal Render Pipeline and the Built-in Standard shader don’t use a mask map. They read metalness from the metallic map’s color and smoothness from its alpha. Pick Unity URP / Built-in and the generator saves MetallicSmoothness.png that way, with Albedo, Normal, Occlusion and Height beside it. In the material, set Smoothness source to Metallic Alpha.
The normal map
Unity reads OpenGL normal maps (green up), so both Unity presets tick Normal (OpenGL). Set its Texture Type to Normal map in the import settings.
What each Unity preset saves
Each file is named after your material, for example rusty_steel_MaskMap.png.
Unity HDRP
Albedo,Normal,HeightandMaskMap, ticked from the start.Unity URP / Built-in
Albedo,Normal,Occlusion,HeightandMetallicSmoothness.Change the ticks
A preset’s ticks are where it starts. Tick or untick any map, roughness or metalness on their own included, and the generator keeps your choice for that preset on this device.
Where the values come from
From a photo, the generator works out a height from its brightness, then the normals, AO and roughness from that. Metalness is One value for the whole surface, or Bright parts above a Threshold for, say, bare metal showing through paint. A procedural (bricks, tiles, stones, fabric, marble, wood, water and more) or a library material brings its own metal and roughness pattern. Every map has its own sliders, and the mask map is packed from whatever they say at the moment you save.
Use Solo on any map to see it alone in the preview; it changes nothing you save.
Seamless and sized
Tiling adjustment set to Blend edges or Repeat makes every map, the mask map included, repeat with no join. Size offers the picture’s own width and the powers of two below it, 4096, 2048, 1024 and 512 px. A procedural draws at any of them. A computer saves up to 4096 px; a phone or tablet up to 2048 px, because a 4096 set holds several large pictures in memory while it is made.
Other engines from the same picture
The Preset menu has six more: Custom (your own ticks and plain names), Unreal Engine (DirectX normal and ORM, named T_…), Blender (names Node Wrangler sets up in one go), Godot / glTF (ORM), Cinema 4D / Maya and 3ds Max. Switching changes the ticks, the normal and the names, never the maps themselves.
Packing maps you made somewhere else isn’t something this does: it packs the maps it makes from your picture.
How to make a Unity mask map
Drop a texture
A photo onto the generator, or choose a procedural or a library material.
Set the maps
Roughness, metalness and AO each have their own sliders. Watch the lit preview, or Solo one map.
Pick the preset
Unity HDRP for a mask map, Unity URP / Built-in for metallic smoothness.
Save
Choose a Size and Save to device: a zip of the set, named for Unity.
Questions
What is in an HDRP mask map?
Metalness in red, ambient occlusion in green, the detail mask in blue and smoothness in alpha. The generator writes the detail mask white, which does nothing until you add a detail map.
Does it make a mask map for URP?
URP doesn’t read a mask map. Its Lit shader reads metalness and smoothness from the metallic map, which the Unity URP / Built-in preset saves with smoothness in the alpha.
Why smoothness and not roughness?
Unity’s shaders read smoothness, which is 1 minus roughness. The generator turns its roughness round when it packs the map.
Should sRGB be on for the mask map?
No. Turn sRGB off: its channels are data, not color. Leave it on for the albedo.
Can I pack maps I already have?
No. It packs the maps it makes from your picture, procedural or library material, not separate files you bring.
Is it free, and is my picture uploaded?
It is free with no account, and nothing is uploaded: the maps are made on your device and saved straight to it.
The whole PBR set
Every preset, every map and the seamless options, on the PBR Texture Generator’s own page.
PBR Texture GeneratorRoughness on its own
How the roughness behind the smoothness is made, and the controls that shape it.
Roughness map generator All generators