Ongoing PostFX org rework.

This commit is contained in:
Areloch 2019-02-11 00:17:53 -06:00
parent b221b312d2
commit 64db2b1d15
6 changed files with 221 additions and 178 deletions

View file

@ -1434,6 +1434,11 @@ void PostEffect::_checkRequirements()
// properly, we can find all the input textures,
// and its formats are supported.
if (mShaderName == String("PFX_ReflectionProbeArray") || getName() == StringTable->insert("reflectionProbeArrayPostFX"))
{
bool derp = true;
}
mIsValid = false;
mUpdateShader = false;
mShader = NULL;
@ -1473,9 +1478,11 @@ void PostEffect::_checkRequirements()
if ( texFilename.isNotEmpty() && texFilename[0] == '#' )
{
NamedTexTarget *namedTarget = NamedTexTarget::find( texFilename.c_str() + 1 );
if ( !namedTarget )
if (!namedTarget)
{
return;
}
// Grab the macros for shader initialization.
namedTarget->getShaderMacros( &macros );
}