mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
don't flip invertroughness on by default
This commit is contained in:
parent
5981154102
commit
2b6b56d0d9
2 changed files with 5 additions and 5 deletions
|
|
@ -3003,7 +3003,7 @@ Torque::Path AssetImporter::importMaterialAsset(AssetImportObject* assetItem)
|
||||||
|
|
||||||
if (hasRoughness)
|
if (hasRoughness)
|
||||||
{
|
{
|
||||||
newMat->mInvertRoughness[0] = true;
|
newMat->mInvertRoughness[0] = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
newAsset->addObject(newMat);
|
newAsset->addObject(newMat);
|
||||||
|
|
|
||||||
|
|
@ -206,15 +206,15 @@ void AssimpAppMaterial::initMaterial(const Torque::Path& path, Material* mat) co
|
||||||
if (rmName.isNotEmpty())
|
if (rmName.isNotEmpty())
|
||||||
{
|
{
|
||||||
mat->_setRoughMap(cleanTextureName(rmName, cleanFile, path, false), 0); // Roughness
|
mat->_setRoughMap(cleanTextureName(rmName, cleanFile, path, false), 0); // Roughness
|
||||||
mat->mRoughnessChan[0] = 1.0f;
|
mat->mRoughnessChan[0] = 1;
|
||||||
mat->mInvertRoughness[0] = (floatVal == 1.0f);
|
mat->mInvertRoughness[0] = false;
|
||||||
mat->_setMetalMap(cleanTextureName(rmName, cleanFile, path, false), 0); // Metallic
|
mat->_setMetalMap(cleanTextureName(rmName, cleanFile, path, false), 0); // Metallic
|
||||||
mat->mMetalChan[0] = 2.0f;
|
mat->mMetalChan[0] = 2;
|
||||||
}
|
}
|
||||||
if (aoName.isNotEmpty())
|
if (aoName.isNotEmpty())
|
||||||
{
|
{
|
||||||
mat->_setAOMap(cleanTextureName(aoName, cleanFile, path, false), 0); // occlusion
|
mat->_setAOMap(cleanTextureName(aoName, cleanFile, path, false), 0); // occlusion
|
||||||
mat->mAOChan[0] = 0.0f;
|
mat->mAOChan[0] = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue