Merge pull request #2725 from migenius/migenius-fix-pbrsg

glTF2 fix glossinessFactor being put into the wrong object on export
This commit is contained in:
Kim Kulling
2019-10-29 12:57:23 +01:00
committed by GitHub
+1 -1
View File
@@ -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);