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

Commit a0ff02f

Browse files
committed
Fix for #125
1 parent 030b753 commit a0ff02f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PostProcessing/Resources/Shaders/LutGen.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Shader "Hidden/Post FX/Lut Generator"
6161
acescg = WhiteBalance(acescg, _Balance);
6262
acescg = LiftGammaGain(acescg, _Lift, _InvGamma, _Gain);
6363

64-
half3 hsv = RgbToHsv(acescg);
64+
half3 hsv = RgbToHsv(max(acescg, 0.0));
6565
hsv.x = SecondaryHueHue(hsv.x + _HueShift, _Curves);
6666
acescg = HsvToRgb(hsv);
6767

0 commit comments

Comments
 (0)