mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-01 18:41:00 +00:00
clamp borghtpass filter return values to smooth out bloom
This commit is contained in:
parent
e2cb62e252
commit
2d18d5b280
|
|
@ -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) );
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue