Metallic Roughness / Specular Glossiness gltf sample assets

  1. When I try to configure these gLTF sample assets via code, I get some weird results.

For the specular glossiness workflow, using the PBRSpecularGlossiness material works. Can’t seem to use the PBR Material class.

  1. For the Metallic Roughness workflow, I can get it to work with PBRMetallicRoughness but not PBRMaterial even though PBRMaterial has the option to get roughness from RoughnessFromMetallicTextureGreen and MetallicFromMetallicTextureBlue.

  2. Why does PBRMetallicRoughness work but not PBRMaterial, even though I have the channel flags set?

  3. Does the reflectivityTexture ever work with a specular glossiness texture?



Hello! Besides seeing the green and blue channel options, you also have to set useRoughnessFromMetallicTextureAlpha to false. That’s not very intuitive, so I added a line in the docstring to make that clearer: add clarification to pbrmaterial docs by carolhmj · Pull Request #14704 · BabylonJS/Babylon.js (

1 Like

Thanks for the insight! Appreciate the PR adding further information.

  1. I guess a final question is, like the metallic-roughness workflow using PBRMaterial (with flags) as well as PBRMetallicRoughness, is there a similar option for PBRSpecularGlossiness?

The process should work the same for using PBRMaterial in spec gloss mode, there is more information about this here: Mastering PBR Materials | Babylon.js Documentation

1 Like