What PBrokkR is
PBrokkR turns one image into a full set of PBR maps that repeat without a visible seam. You give it a height map, a photo, a normal map, or nothing at all, and it writes the textures a game engine material needs.

What it makes
| Map | What it is for |
|---|---|
| Height | How high each point of the surface is. Everything else comes from it. |
| Normal | The direction the surface faces, so light reacts to bumps that are not in the mesh. |
| AO (ambient occlusion) | Soft shadow in crevices and valleys. |
| Curvature and cavity | Edges and pits, used for wear, dirt and masks. |
| Roughness / smoothness | How matte or shiny each point is. |
| Packed texture | Several grey maps in the channels of one file (a Unity mask map by default). |
| Albedo | The colour, made seamless, when the input is a photo. |
See The maps for a picture of each one.
The one idea to keep
Height is the master map. PBrokkR first makes a good, tileable height, and then derives every other map from it with filters that wrap around the border. Two consequences:
- If the height tiles, every map tiles. You fix a seam in one place.
- The maps always agree with each other: the normal, the AO and the roughness describe the same surface.
Four ways to use it
| Front end | Good for | Start here |
|---|---|---|
| The app (runs in your browser, on your computer only) | Looking at the result while you move sliders | Your first material |
| Command line | Batches, scripts, build steps | Command line |
| Python API | Calling the pipeline from your own tools | Python API |
| MCP server | Letting an AI agent (Claude, Codex, Cursor and others) make materials for you | MCP |
All four run the same pipeline: the same parameters write the same bytes, whichever one you use.
About the name
In Norse myth, Brokkr is the dwarf smith who forged Mjölnir. PBrokkR forges PBR materials: the capital P, B and R spell what it makes. The command and the Python package keep the short name pbrgen.
What it is not
- Not a Unity package: it writes ordinary image files that any engine can import.
- Not a node editor: there is one pipeline with parameters, not a graph.
- Not an online service: nothing is uploaded, and it works without internet.