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

Commit 2782ec1

Browse files
committed
Tweaked epsilon value on QuadraticThreshold
1 parent d20d5ad commit 2782ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Shaders/Colors.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ half4 QuadraticThreshold(half4 color, half threshold, half3 curve)
202202
rq = curve.z * rq * rq;
203203

204204
// Combine and apply the brightness response curve.
205-
color *= max(rq, br - threshold) / max(br, 1e-5);
205+
color *= max(rq, br - threshold) / max(br, EPSILON);
206206

207207
return color;
208208
}

0 commit comments

Comments
 (0)