Expand description
PBR material sets: finds the maps that belong to a model or texture by file name, and builds the texture keys the renderer understands.
Supported naming (the part before the suffix is the shared stem):
- Unity / HDRP packs:
<stem>_AlbedoTransparency.png,_MetallicSmoothness.png(R = metallic, A = smoothness),_Normal.png. - Substance / generic:
_BaseColor,_Normal(or_NormalGL),_Roughness,_Metallic,_AmbientOcclusion/_AO.
Structs§
- PbrSet
- Discovered texture maps for one physically based material.
Constants§
- ORM_
PREFIX - Texture key prefix: a packed occlusion / roughness / metallic texture composed from separate maps.
Functions§
- discover
- Maps found next to
path(a model or any texture of the set). - orm_key
- Builds an
orm:key. Each part is an asset path;smoothis a Unity MetallicSmoothness map (metal from red, smoothness from alpha) that supplies both metal and roughness. - parse_
orm_ key - Splits an
orm:key back into(ao, rough, metal, smooth).