Make sure `on` flag for specularGlossiness is being persisted
parent
8bef546b41
commit
feee7528d6
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue