Explorar o código

clip out eroneous test casuing issues with MFT_SubSurface

AzaezelX %!s(int64=5) %!d(string=hai) anos
pai
achega
63a4d69a33
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      Engine/source/renderInstance/renderDeferredMgr.cpp

+ 1 - 3
Engine/source/renderInstance/renderDeferredMgr.cpp

@@ -745,10 +745,8 @@ void ProcessedDeferredMaterial::_determineFeatures( U32 stageNum,
          newFeatures.addFeature( MFT_VertLit );
          newFeatures.addFeature( MFT_LightbufferMRT );
       }
-      else
+      else if (!fd.features.hasFeature(MFT_GlowMap))
       {
-         // If this object isn't lightmapped or emissive, add a zero-output feature for render target 3
-         if (!fd.features.hasFeature(MFT_IsEmissive)&&(!fd.features.hasFeature(MFT_GlowMap)))
             newFeatures.addFeature( MFT_RenderTarget3_Zero );
       }
    }