Export to GLB causing PBR material to be blown away

Hi All,

I think I found a bug where adding a PBR Material to a mesh and then exporting it to GLB
caused the material to be removed from the exported file. If I switch the material to Standard
it works fine.

Here’s the playground:


It is because PBRSpecGloss materials are not supported for export, you could use either a PBRMaterial or a PBRMaterialRough one to ensure your export works fine (a warning is emitted telling the mat is not supported in the console)


Thanks, that clears things up. I should have checked the log. Are there plans to support it?

Ping @Drigax and @bghgary for the plan

I don’t believe there are currently any plans to support it. Feel free to file a feature request.

Currently no plans to support KHR_materials_pbrSpecularGlossiness for export, but that can always be changed given enough demand for the extension.

Thanks for the info you guys. We can get around the issue by serialising materials separately.

1 Like