Move pbrSG glossinessFactor into the correct material extension object. Fixes issue #2724.
parent
fa8ab3b1e7
commit
822be33408
|
@ -358,7 +358,7 @@ namespace glTF2 {
|
||||||
WriteVec(pbrSpecularGlossiness, pbrSG.specularFactor, "specularFactor", defaultSpecularFactor, w.mAl);
|
WriteVec(pbrSpecularGlossiness, pbrSG.specularFactor, "specularFactor", defaultSpecularFactor, w.mAl);
|
||||||
|
|
||||||
if (pbrSG.glossinessFactor != 1) {
|
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);
|
WriteTex(pbrSpecularGlossiness, pbrSG.diffuseTexture, "diffuseTexture", w.mAl);
|
||||||
|
|
Loading…
Reference in New Issue