From 627b727463155663df38a9b7566ae28f0ece4863 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Tue, 9 Feb 2021 09:59:41 +0100 Subject: [PATCH] Fixed gouraud fragment shader --- resources/shaders/gouraud.fs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/shaders/gouraud.fs b/resources/shaders/gouraud.fs index 6dbd0e6fe..850d69b08 100644 --- a/resources/shaders/gouraud.fs +++ b/resources/shaders/gouraud.fs @@ -39,8 +39,8 @@ void main() vec3 color = uniform_color.rgb; float alpha = uniform_color.a; if (slope.actived && world_normal_z < slope.normal_z - EPSILON) { - color = vec3(0.7f, 0.7f, 1.f); - alpha = 1.f; + color = vec3(0.7, 0.7, 1.0); + alpha = 1.0; } // if the fragment is outside the print volume -> use darker color color = (any(lessThan(delta_box_min, ZERO)) || any(greaterThan(delta_box_max, ZERO))) ? mix(color, ZERO, 0.3333) : color;