Make sure `on` flag for specularGlossiness is being persisted

pull/1423/head
Daniel Hritzkiv 2017-09-01 02:42:09 -04:00
parent 8bef546b41
commit feee7528d6
No known key found for this signature in database
GPG Key ID: D1D19875679D5CBF
1 changed files with 1 additions and 0 deletions

View File

@ -426,6 +426,7 @@ void glTF2Exporter::ExportMaterials()
KHR_materials_pbrSpecularGlossiness = true; KHR_materials_pbrSpecularGlossiness = true;
} }
m->pbrSpecularGlossiness.on = true;
GetMatColor(mat, m->pbrSpecularGlossiness.diffuseFactor, "$clr.diffuse", 0, 1); GetMatColor(mat, m->pbrSpecularGlossiness.diffuseFactor, "$clr.diffuse", 0, 1);
GetMatColor(mat, m->pbrSpecularGlossiness.specularFactor, "$clr.specular", 0, 1); GetMatColor(mat, m->pbrSpecularGlossiness.specularFactor, "$clr.specular", 0, 1);
mat->Get("$mat.gltf.glossinessFactor", 0, 0, m->pbrSpecularGlossiness.glossinessFactor); mat->Get("$mat.gltf.glossinessFactor", 0, 0, m->pbrSpecularGlossiness.glossinessFactor);