Split a material into separate PBR texture planes
extract_pbr_trioSplit glTF materials into separate albedo, normal, roughness, metallic, and occlusion images. De-packs metallicRoughness channels, resamples to target resolution, and records source texture and channel for each output.
Instructions
FREE and fully local: no network call, no credits. Splits a glTF material into independent albedo, normal and roughness images (plus metallic and occlusion when present), de-packing the glTF metallicRoughness texture — roughness is its GREEN channel, metallic its BLUE. Resamples to an exact resolution, averaging colour in linear light and data channels directly, and writes a receipt naming the source texture and channel behind every plane. Use after download_asset, or on any local glTF/GLB. Planes a material declares only as a scalar factor are emitted as flat images and marked source="factor" so a constant is never mistaken for measured data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelPath | No | Absolute path to a local .glb or .gltf. | |
| assetJobId | No | A job that has already been downloaded. | |
| resolution | No | Square output size. Defaults to the largest source texture dimension. | |
| destination | No | Output directory. Defaults to the workspace. | |
| materialIndex | No | Which material to split when the file has several. |