Skip to content

Commit 0e50cba

Browse files
committed
Update cBloom.fx
1 parent f6185f5 commit 0e50cba

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

shaders/cBloom.fx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -374,20 +374,8 @@ CREATE_PS_UPSCALE(PS_Upscale1, SampleTempTex2, _Level1Weight)
374374

375375
float4 PS_Composite(VS2PS_Quad Input) : SV_TARGET0
376376
{
377-
// Normalize weights
378-
float AllWeights = 0.0;
379-
AllWeights += _Level1Weight;
380-
AllWeights += _Level2Weight;
381-
AllWeights += _Level3Weight;
382-
AllWeights += _Level4Weight;
383-
AllWeights += _Level5Weight;
384-
AllWeights += _Level6Weight;
385-
AllWeights += _Level7Weight;
386-
AllWeights += _Level8Weight;
387-
AllWeights = max(1.0, AllWeights);
388-
389377
float3 BaseColor = tex2D(CShade_SampleColorTex, Input.Tex0).rgb;
390-
float3 BloomColor = tex2D(SampleTempTex1, Input.Tex0).rgb / AllWeights;
378+
float3 BloomColor = tex2D(SampleTempTex1, Input.Tex0).rgb;
391379

392380
float4 Color = 1.0;
393381
Color.rgb = ApplyOutputTonemap(BaseColor + (BloomColor * _Intensity));

0 commit comments

Comments
 (0)