Formatting
parent
b1a5ca4516
commit
cde29c937c
|
@ -389,8 +389,6 @@ void glTF2Exporter::GetMatColor(const aiMaterial* mat, vec3& prop, const char* p
|
||||||
|
|
||||||
void glTF2Exporter::ExportMaterials()
|
void glTF2Exporter::ExportMaterials()
|
||||||
{
|
{
|
||||||
bool& KHR_materials_pbrSpecularGlossiness = mAsset->extensionsUsed.KHR_materials_pbrSpecularGlossiness;
|
|
||||||
|
|
||||||
aiString aiName;
|
aiString aiName;
|
||||||
for (unsigned int i = 0; i < mScene->mNumMaterials; ++i) {
|
for (unsigned int i = 0; i < mScene->mNumMaterials; ++i) {
|
||||||
const aiMaterial* mat = mScene->mMaterials[i];
|
const aiMaterial* mat = mScene->mMaterials[i];
|
||||||
|
@ -442,8 +440,8 @@ void glTF2Exporter::ExportMaterials()
|
||||||
|
|
||||||
if (hasPbrSpecularGlossiness) {
|
if (hasPbrSpecularGlossiness) {
|
||||||
|
|
||||||
if (!KHR_materials_pbrSpecularGlossiness) {
|
if (!mAsset->extensionsUsed.KHR_materials_pbrSpecularGlossiness) {
|
||||||
KHR_materials_pbrSpecularGlossiness = true;
|
mAsset->extensionsUsed.KHR_materials_pbrSpecularGlossiness = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
PbrSpecularGlossiness pbrSG;
|
PbrSpecularGlossiness pbrSG;
|
||||||
|
|
Loading…
Reference in New Issue