Merge pull request #2725 from migenius/migenius-fix-pbrsg
glTF2 fix glossinessFactor being put into the wrong object on exportpull/2726/head^2
commit
15dcd5c096
|
@ -358,7 +358,7 @@ namespace glTF2 {
|
|||
WriteVec(pbrSpecularGlossiness, pbrSG.specularFactor, "specularFactor", defaultSpecularFactor, w.mAl);
|
||||
|
||||
if (pbrSG.glossinessFactor != 1) {
|
||||
WriteFloat(obj, pbrSG.glossinessFactor, "glossinessFactor", w.mAl);
|
||||
WriteFloat(pbrSpecularGlossiness, pbrSG.glossinessFactor, "glossinessFactor", w.mAl);
|
||||
}
|
||||
|
||||
WriteTex(pbrSpecularGlossiness, pbrSG.diffuseTexture, "diffuseTexture", w.mAl);
|
||||
|
|
Loading…
Reference in New Issue