Skip to content

Commit 2b6b56d

Browse files
committed
don't flip invertroughness on by default
1 parent 5981154 commit 2b6b56d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

Engine/source/T3D/assets/assetImporter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3003,7 +3003,7 @@ Torque::Path AssetImporter::importMaterialAsset(AssetImportObject* assetItem)
30033003

30043004
if (hasRoughness)
30053005
{
3006-
newMat->mInvertRoughness[0] = true;
3006+
newMat->mInvertRoughness[0] = false;
30073007
}
30083008

30093009
newAsset->addObject(newMat);

Engine/source/ts/assimp/assimpAppMaterial.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,15 +206,15 @@ void AssimpAppMaterial::initMaterial(const Torque::Path& path, Material* mat) co
206206
if (rmName.isNotEmpty())
207207
{
208208
mat->_setRoughMap(cleanTextureName(rmName, cleanFile, path, false), 0); // Roughness
209-
mat->mRoughnessChan[0] = 1.0f;
210-
mat->mInvertRoughness[0] = (floatVal == 1.0f);
209+
mat->mRoughnessChan[0] = 1;
210+
mat->mInvertRoughness[0] = false;
211211
mat->_setMetalMap(cleanTextureName(rmName, cleanFile, path, false), 0); // Metallic
212-
mat->mMetalChan[0] = 2.0f;
212+
mat->mMetalChan[0] = 2;
213213
}
214214
if (aoName.isNotEmpty())
215215
{
216216
mat->_setAOMap(cleanTextureName(aoName, cleanFile, path, false), 0); // occlusion
217-
mat->mAOChan[0] = 0.0f;
217+
mat->mAOChan[0] = 0;
218218
}
219219
else
220220
{

0 commit comments

Comments
 (0)