Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit 24da325

Browse files
committed
Fixed eye adaptation not adapting correctly when the average luminance is > 1
1 parent 16f6094 commit 24da325

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PostProcessing/Resources/Shaders/EyeAdaptation.cginc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ float GetHistogramBinFromLuminance(float value, float2 scaleOffset)
1616

1717
float GetLuminanceFromHistogramBin(float bin, float2 scaleOffset)
1818
{
19-
return saturate(exp2((bin - scaleOffset.y) / scaleOffset.x));
19+
return exp2((bin - scaleOffset.y) / scaleOffset.x);
2020
}
2121

2222
#endif // __EYE_ADAPTATION__

0 commit comments

Comments
 (0)