Skip to content

Commit

Permalink
Update cBloom.fx
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed May 17, 2023
1 parent a8417f3 commit 6158829
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shaders/cBloom.fx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ namespace cBloom
// Combine and apply the brightness response curve
Color = Color * max(Response_Curve, Brightness - _Threshold) / max(Brightness, 1e-10);
Brightness = Med3(Color.r, Color.g, Color.b);
return float4(saturate(lerp(Brightness, Color.rgb, _Saturation)) * _ColorShift, 1.0);
return float4(lerp(Brightness, Color.rgb, _Saturation) * (_Intensity * _ColorShift), 1.0);
}

// 13-tap downsampling with Karis luma filtering
Expand Down Expand Up @@ -291,7 +291,7 @@ namespace cBloom
float3 BloomColor = tex2D(SampleTex1, Input.Tex0).rgb;

float4 Color = 1.0;
Color.rgb = ToneMapACESFilmic(BaseColor + (BloomColor* _Intensity));
Color.rgb = ToneMapACESFilmic(BaseColor + BloomColor);
return Color;
}

Expand Down

0 comments on commit 6158829

Please sign in to comment.