From 3a09f66e513c363198d34714747a6e799ee9a318 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Mon, 8 Apr 2019 16:05:18 +0200 Subject: [PATCH] Fixed a literal in vertex shader that refused to compile on OSX --- resources/shaders/gouraud.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/shaders/gouraud.fs b/resources/shaders/gouraud.fs index 5b4ef0480..b2bc915ab 100644 --- a/resources/shaders/gouraud.fs +++ b/resources/shaders/gouraud.fs @@ -23,7 +23,7 @@ void main() if ((world_pos.z < z_range.x) || (z_range.y < world_pos.z)) discard; - if (world_pos.x*clipping_plane.x + world_pos.y*clipping_plane.y + world_pos.z*clipping_plane.z + clipping_plane.w < 0.f ) + if (world_pos.x*clipping_plane.x + world_pos.y*clipping_plane.y + world_pos.z*clipping_plane.z + clipping_plane.w < 0.0 ) discard; // if the fragment is outside the print volume -> use darker color