Texture pack (.pbrpack)
A texture pack is one file that holds a whole material: the maps, the manifest that describes them, and a small descriptor. AskrGarden (the tree generator) imports it in one step and fills every slot of a PBR material node, with the right colour space and normal convention.
Making one
In the Export panel, tick Write the pack and choose a Kind:
| Kind | For | What the importer assumes |
|---|---|---|
| generic | Anything | Opaque, one-sided |
| bark | Trunks and branches | Opaque, one-sided |
| leaf | Leaves and fronds | Cut-out by the albedo's alpha, two-sided |
| ground | Soil, rock, terrain | Opaque, one-sided |
The pack is written next to the maps as <prefix>.pbrpack. The loose files are written too. A pack holds PNG maps only, so it is not available with the Godot profile or with an EXR height.
powershell
pbrokkr-cli generate --kind procedural -p proc_ropes --pack bark -o out\barkOptions
| Parameter | Meaning |
|---|---|
texpack_name | Name of the material and of the folder the pack unpacks into. Empty = the file prefix. |
texpack_alpha_mode | auto (what the kind says), opaque or mask |
texpack_alpha_cutoff | Alpha below this is cut away in mask mode |
texpack_double_sided | auto, on or off |
texpack_atlas | Leaf atlas regions, when one image holds several leaves: u0, v0, u1, v1 rectangles separated by ; |
texpack_translucency | How much light passes through (leaves), 0 to 1 |
What is inside
A pack is an ordinary zip with a flat list of files:
text
bark.pbrpack
pbrpack.json what the set is for, alpha and two-sided settings
bark_manifest.json every map: file, channels, bit depth, colour space
bark_Height.png
bark_Normal.png
...json
{
"format": "pbrpack",
"pack_version": 1,
"generator": "pbrgen 1.0.0",
"name": "bark",
"kind": "bark",
"manifest": "bark_manifest.json"
}The same parameters always produce the same pack, byte for byte, so a pack can be kept in version control and compared.