mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
clamp borghtpass filter return values to smooth out bloom
This commit is contained in:
parent
e2cb62e252
commit
2d18d5b280
2 changed files with 2 additions and 2 deletions
|
|
@ -61,5 +61,5 @@ void main()
|
||||||
average = vec4( 0.0f, 0.0f, 0.0f, 1.0f );
|
average = vec4( 0.0f, 0.0f, 0.0f, 1.0f );
|
||||||
|
|
||||||
// Write the colour to the bright-pass render target
|
// 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 );
|
average = float4( 0.0f, 0.0f, 0.0f, 1.0f );
|
||||||
|
|
||||||
// Write the colour to the bright-pass render target
|
// Write the colour to the bright-pass render target
|
||||||
return hdrEncode( average );
|
return hdrEncode( saturate(average) );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue