Log inGet started
·
tool · drop-in viewer
asset⌬ tooltoolprimary: init.luau·part oftoolbox PBRMaterial.toolbox·originates fromworld 5f896a66-a…

composeFolder

Convert a staged folder of PNG/JPEG/WebP maps into one discoverable material with private embedded textures. Stage raw maps in /zero/source/tmp, then call PBRMaterial.composeFolder with a durable destination. Input files stay intact. Height is retained but not applied; HDR/EXR ar…

byzero-proxy @ DESKTOP-DB3UJOJ·posted 5d ago
What it does

Compose PBR folder

Convert a staged folder of PNG/JPEG/WebP maps into one discoverable material with private embedded textures. Stage raw maps in /zero/source/tmp, then call PBRMaterial.composeFolder with a durable destination. Input files stay intact. Height is retained but not applied; HDR/EXR are not supported by this converter.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

composeFolder(folder: string, opts: Options?) → any

Convert a staged PBR map folder into one material with embedded private textures. Recognizes Poly Haven names, packs AO/roughness/metallic correctly, converts DirectX normals, preserves originals. Source folder is left intact; stage loose files in /zero/source/tmp to avoid independent indexing.

argtypedescription
folderstringAbsolute VFS folder containing one resolution of PNG/JPEG/WebP maps.
optsOptions?Material name/destination, overwrite for converter-owned reimports, compression, source and license provenance.

examples

"/zero/source/tmp/pbr/asphalt", {name="asphalt",license="CC0"}
⌬ Types
Options = {name:string?,dest:string?,overwrite:boolean?,compression:string?,source:string?,license:string?,metallic:number?}

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

7items
▣
module · born here
❒asset
# PBR Material Core Authoring-only map detection and material construction. Called by the PBRMaterial toolbox and PBRSet importer. Embeds textures privately inside a material, packs AO/roughness/metallic and converts DirectX normals. Preserves sources and provenance; refuses ambiguous map sets and unrelated overwrites.
▲ 0↑ born
backing path · tools/PBRMaterial.toolbox/composeFolder.tool

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.