cleans up a few more spots of various variables that ammount to the "PBRConfig" in the end, as well as a MFT_isDeferred test for determining if that's stored off as a temp-val or in the gbuffer. though seem to have forgotten a catch, as it's not finding the MFT_PBRConfigMap feature and falling back to recreation come time to process MFT_ReflectionProbes

This commit is contained in:
AzaezelX 2019-10-23 14:59:29 -05:00
parent bfccfca0ce
commit ad216abc02
5 changed files with 96 additions and 63 deletions

View file

@ -439,7 +439,15 @@ void ProcessedShaderMaterial::_determineFeatures( U32 stageNum,
fd.features[ MFT_NormalMap ] )
fd.features.addFeature( MFT_Parallax );
}
// Deferred Shading : PBR Config
if (mStages[stageNum].getTex(MFT_PBRConfigMap))
{
fd.features.addFeature(MFT_PBRConfigMap);
}
else
fd.features.addFeature(MFT_PBRConfigVars);
if( fd.features[ MFT_PBRConfigMap ] )
{
// Check for an alpha channel on the PBR Config map. If it has one (and it