clamp saturation in colorize instead of wrapping

This commit is contained in:
pythongosssss
2026-02-16 03:45:48 -08:00
parent 5459f7b559
commit aa1275dfbd
2 changed files with 2 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ vec3 colorize(vec3 rgb, float hue, float sat, float light) {
float lum = dot(rgb, vec3(0.299, 0.587, 0.114));
float l = adjustLightness(lum, light);
vec3 hsl = vec3(fract(hue), clamp(abs(sat), 0.0, 1.0), clamp(l, 0.0, 1.0));
vec3 hsl = vec3(fract(hue), clamp(sat, 0.0, 1.0), clamp(l, 0.0, 1.0));
return hsl2rgb(hsl);
}

File diff suppressed because one or more lines are too long