BrianW
September 18, 2019, 8:20pm
1
Hi everyone,
I’m trying to store PBR Materials created in Babylon into my database. At the moment I create a single triangle and apply a material to it and then export using GLTF2Export.GLTFAsync. So far I’m getting these files:
material.gltf
material.bin
bjsBaseColorTexture_0.png.png
bjsMetallicRoughnessTexture_1.png.png
Is this what I can expect for any PBR Material? Or will there be more files?
Sorry for the noob question and thanks for the help!
-Brian
bghgary
September 19, 2019, 3:59pm
3
The PBR material in glTF can have the following textures:
baseColor
metallic/roughness
occlusion
normal
emissive
Occlusion maybe packed together with metallic/roughness.
See glTF/specification/2.0 at master · KhronosGroup/glTF · GitHub for more information.
BrianW
September 20, 2019, 1:14pm
4
Thanks for the info. I was thinking of creating a textures library but I think I’ll go with just storing materials as glb files.