Skip to content

Commit

Permalink
Update cAutoExposure.fx
Browse files Browse the repository at this point in the history
  • Loading branch information
papadanku committed Oct 1, 2023
1 parent e241230 commit 59bea81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shaders/cAutoExposure.fx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ float4 PS_Blit(VS2PS_Quad Input) : SV_TARGET0
// OutputColor0.rgb = Output the highest brightness out of red/green/blue component
// OutputColor0.a = Output the weight for temporal blending
float Delay = 1e-3 * _Frametime;
return float4(log(Luma.rgb), saturate(Delay * _SmoothingSpeed));
return float4(log(max(Luma.rgb, 1e-2)), saturate(Delay * _SmoothingSpeed));
}

float3 GetAutoExposure(float3 Color, float2 Tex)
Expand Down

0 comments on commit 59bea81

Please sign in to comment.