PBR To glTF 2.0 converter
pbr2gltf2 is a command line tool for converting PBR images to a glTF 2.0 material. The tool is detecting depending on the filename, which PBR information is stored. It swizzles the images and does reassign the channels to a glTF 2.0 image. The tool stores the images plus a minimal, valid glTF 2.0 file containing the required material, textures and images.
pbr2gltf2.exe folder [-m 1.0 -r 1.0 -n true -e true]
-m 1.0 Default metallic factor value, if no metallic image was found.
-r 1.0 Default roughness factor value, if no roughness image was found.
-n true Keep original normal image data.
-e true Keep original emissive image data.
Supported PBR packages
- https://cc0textures.com/ PBR Materials For Anyone And Any Purpose!
- https://cgbookcase.com/ Free PBR Textures
- https://gametextures.com/ PBR Generic
Import the generated glTF
Import the generated glTF in e.g. Gestaltor and reuse in your scene.
A short tutorial can be found here: Gestaltor - How to rescale a texture.