more prepass cleanup, plus skip out early on _determinefeatures for deferred if we're translucent

This commit is contained in:
AzaezelX 2020-08-03 16:45:05 -05:00
parent b81b4c61a5
commit 1e66b118b6

View file

@ -594,6 +594,8 @@ void ProcessedDeferredMaterial::_determineFeatures( U32 stageNum,
const FeatureSet &features )
{
Parent::_determineFeatures( stageNum, fd, features );
if (fd.features.hasFeature(MFT_ForwardShading))
return;
// Find this for use down below...
bool bEnableMRTLightmap = false;
@ -676,7 +678,6 @@ void ProcessedDeferredMaterial::_determineFeatures( U32 stageNum,
type == MFT_DetailNormalMap ||
type == MFT_AlphaTest ||
type == MFT_Parallax ||
type == MFT_InterlacedDeferred ||
type == MFT_Visibility ||
type == MFT_UseInstancing ||
type == MFT_DiffuseVertColor ||