clamp borghtpass filter return values to smooth out bloom

This commit is contained in:
AzaezelX 2020-11-13 15:18:20 -06:00
parent e2cb62e252
commit 2d18d5b280
2 changed files with 2 additions and 2 deletions

View file

@ -61,5 +61,5 @@ void main()
average = vec4( 0.0f, 0.0f, 0.0f, 1.0f );
// Write the colour to the bright-pass render target
OUT_col = hdrEncode( average );
OUT_col = hdrEncode( saturate(average) );
}

View file

@ -58,5 +58,5 @@ float4 main( PFXVertToPix IN ) : TORQUE_TARGET0
average = float4( 0.0f, 0.0f, 0.0f, 1.0f );
// Write the colour to the bright-pass render target
return hdrEncode( average );
return hdrEncode( saturate(average) );
}