be clear where we're referencing gbuffer render targets

This commit is contained in:
AzaezelX 2021-08-28 17:21:45 -05:00
parent c04f3ae166
commit 2287c28d32
9 changed files with 24 additions and 154 deletions

View file

@ -55,7 +55,7 @@ void AccuTexFeatGLSL::processPix(Vector<ShaderComponent*> &componentList,
output = meta;
// OUT.col
Var *color = (Var*) LangElement::find( "col1" );
Var *color = (Var*) LangElement::find(getOutputTargetVarName(ShaderFeature::RenderTarget1));
if (!color)
{
output = new GenOp(" //NULL COLOR!");
@ -236,4 +236,4 @@ Var* AccuTexFeatGLSL::addOutAccuVec(Vector<ShaderComponent*> &componentList, Mul
}
return outAccuVec;
}
}