Browse Source

Merge pull request #768 from Azaezel/alpha40/singleSlotORMs

drop the prior requirement for a createcomposite to have a minimum of…
Brian Roberts 3 years ago
parent
commit
3f796d2a06

+ 1 - 1
Engine/source/gfx/gfxTextureManager.cpp

@@ -1238,7 +1238,7 @@ GFXTextureObject *GFXTextureManager::createCompositeTexture(GBitmap*bmp[4], U32
          if (bmp[2])
          if (bmp[2])
             bChan = bmp[2]->getChanelValueAt(x, y, inputKey[2]);
             bChan = bmp[2]->getChanelValueAt(x, y, inputKey[2]);
          else
          else
-            bChan = 255;
+            bChan = 0;
 
 
          if (bmp[3])
          if (bmp[3])
             aChan = bmp[3]->getChanelValueAt(x, y, inputKey[3]);
             aChan = bmp[3]->getChanelValueAt(x, y, inputKey[3]);

+ 1 - 1
Engine/source/materials/processedMaterial.cpp

@@ -491,7 +491,7 @@ void ProcessedMaterial::_setStageData()
       }
       }
       else
       else
       {
       {
-         if ((mMaterial->getRoughMap(i) != StringTable->EmptyString()) && (mMaterial->getMetalMap(i) != StringTable->EmptyString()))
+         if ((mMaterial->getAOMap(i) != StringTable->EmptyString()) || (mMaterial->getRoughMap(i) != StringTable->EmptyString()) || (mMaterial->getMetalMap(i) != StringTable->EmptyString()))
          {
          {
             U32 inputKey[4];
             U32 inputKey[4];
             inputKey[0] = mMaterial->mAOChan[i];
             inputKey[0] = mMaterial->mAOChan[i];