mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
preserve glowmap operating as faux lights for probes via oversaturation
(cherry picked from commit 5a2e04838e)
This commit is contained in:
parent
556937ec09
commit
e83028d9ae
|
|
@ -100,7 +100,7 @@ void main()
|
|||
vec4 bloom = texture( bloomTex, IN_uv2 );
|
||||
|
||||
// Add the bloom effect.
|
||||
_sample.rgb = mix(_sample.rgb, bloom.rgb, vec3(0.4));
|
||||
_sample.rgb +=bloom.rgb;
|
||||
|
||||
//Apply Exposure
|
||||
_sample.rgb *= TO_Exposure(_sample.rgb, exposureValue, colorFilter);
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ float4 main( PFXVertToPix IN ) : TORQUE_TARGET0
|
|||
float4 bloom = TORQUE_TEX2D( bloomTex, IN.uv2 );
|
||||
|
||||
// Add the bloom effect.
|
||||
sample.rgb = lerp(sample.rgb, bloom.rgb, float3(0.04, 0.04, 0.04));
|
||||
sample.rgb += bloom.rgb;
|
||||
|
||||
//Apply Exposure
|
||||
sample.rgb *= TO_Exposure(sample.rgb, exposureValue, colorFilter);
|
||||
|
|
|
|||
Loading…
Reference in a new issue