Skip to content

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:

KindForWhat the importer assumes
genericAnythingOpaque, one-sided
barkTrunks and branchesOpaque, one-sided
leafLeaves and frondsCut-out by the albedo's alpha, two-sided
groundSoil, rock, terrainOpaque, 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\bark

Options ​

ParameterMeaning
texpack_nameName of the material and of the folder the pack unpacks into. Empty = the file prefix.
texpack_alpha_modeauto (what the kind says), opaque or mask
texpack_alpha_cutoffAlpha below this is cut away in mask mode
texpack_double_sidedauto, on or off
texpack_atlasLeaf atlas regions, when one image holds several leaves: u0, v0, u1, v1 rectangles separated by ;
texpack_translucencyHow 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.