- 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.
-
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
.
-
Why does PBRMetallicRoughness work but not PBRMaterial, even though I have the channel flags set?
-
Does the reflectivityTexture ever work with a specular glossiness texture?
Thanks
sources:
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 (github.com)
1 Like
Thanks for the insight! Appreciate the PR adding further information.
- 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