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

@ -452,7 +452,7 @@ void NormalsOutFeatGLSL::processPix( Vector<ShaderComponent*> &componentList,
}
LangElement *normalOut;
Var *outColor = (Var*)LangElement::find( "col" );
Var *outColor = (Var*)LangElement::find(getOutputTargetVarName(ShaderFeature::DefaultTarget));
if ( outColor && !fd.features[MFT_AlphaTest] )
normalOut = new GenOp( "float4( ( -@ + 1 ) * 0.5, @.a )", wsNormal, outColor );
else