take ao slot in the gbuffer into account by the simple expedient of multiplying the cast-shadow result by the channel

This commit is contained in:
Azaezel 2018-10-17 21:06:24 -05:00
parent de5ef2d63f
commit 4541a9d4a8
2 changed files with 2 additions and 2 deletions

View file

@ -275,7 +275,7 @@ void main()
// temp for debugging. uncomment one or the other.
//float shadowed = static_shadowed;
//float shadowed = dynamic_shadowed;
float shadowed = min(static_shadowed, dynamic_shadowed);
float shadowed = min(static_shadowed, dynamic_shadowed)*matInfo.g;
#ifdef PSSM_DEBUG_RENDER
if ( fadeOutAmt > 1.0 )

View file

@ -286,7 +286,7 @@ PS_OUTPUT main(FarFrustumQuadConnectP IN)
// temp for debugging. uncomment one or the other.
//float shadowed = static_shadowed;
//float shadowed = dynamic_shadowed;
float shadowed = min(static_shadowed, dynamic_shadowed);
float shadowed = min(static_shadowed, dynamic_shadowed)*matInfo.g;
#ifdef PSSM_DEBUG_RENDER
if (fadeOutAmt > 1.0)