From 3ec64ec5855065eadc4382244900309a636246e1 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Mon, 20 Jun 2022 05:56:46 +0200 Subject: [PATCH] :wrench: Remove implicit casts --- resources/shaders/common.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/shaders/common.glsl b/resources/shaders/common.glsl index 58f3dc5..677dfe8 100644 --- a/resources/shaders/common.glsl +++ b/resources/shaders/common.glsl @@ -129,10 +129,10 @@ vec4 alphaOver(vec4 under, vec4 over) { // Maps the given value from [0..1] to the given colors. vec3 tritone(float val, vec3 shadows, vec3 midtones, vec3 highlights) { if (val < 0.5) { - return mix(shadows, midtones, smoothstep(0, 1, val * 2.0)); + return mix(shadows, midtones, smoothstep(0.0, 1.0, val * 2.0)); } - return mix(midtones, highlights, smoothstep(0, 1, val * 2.0 - 1.0)); + return mix(midtones, highlights, smoothstep(0.0, 1.0, val * 2.0 - 1.0)); } // ---------------------------------------------------------------------- easing functions