Ongoing PostFX org rework.

This commit is contained in:
Areloch 2019-02-11 00:17:53 -06:00
parent ecad33c598
commit a1b281cc5f
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 );
}

View file

@ -353,6 +353,10 @@ public:
bool isOneFrameOnly() { return mOneFrameOnly; }
F32 getAspectRatio() const;
GFXShaderRef getShader() { return mShader; }
Vector<GFXShaderMacro>* getShaderMacros() { return &mShaderMacros; }
GFXShaderConstBufferRef getShaderConstBuffer() { return mShaderConsts; }
enum PostEffectRequirements