mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 19:43:49 +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
|
|
@ -206,15 +206,15 @@ void AssimpAppMaterial::initMaterial(const Torque::Path& path, Material* mat) co
|
|||
if (rmName.isNotEmpty())
|
||||
{
|
||||
mat->_setRoughMap(cleanTextureName(rmName, cleanFile, path, false), 0); // Roughness
|
||||
mat->mRoughnessChan[0] = 1.0f;
|
||||
mat->mInvertRoughness[0] = (floatVal == 1.0f);
|
||||
mat->mRoughnessChan[0] = 1;
|
||||
mat->mInvertRoughness[0] = false;
|
||||
mat->_setMetalMap(cleanTextureName(rmName, cleanFile, path, false), 0); // Metallic
|
||||
mat->mMetalChan[0] = 2.0f;
|
||||
mat->mMetalChan[0] = 2;
|
||||
}
|
||||
if (aoName.isNotEmpty())
|
||||
{
|
||||
mat->_setAOMap(cleanTextureName(aoName, cleanFile, path, false), 0); // occlusion
|
||||
mat->mAOChan[0] = 0.0f;
|
||||
mat->mAOChan[0] = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue