From 405d3fac0c12226807a4546e775e25d4293a5fd5 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Tue, 15 Sep 2020 11:40:51 +0200 Subject: [PATCH] Corrected issue with floor() #1377 --- examples/shaders/resources/shaders/glsl330/eratosthenes.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/shaders/resources/shaders/glsl330/eratosthenes.fs b/examples/shaders/resources/shaders/glsl330/eratosthenes.fs index a6390b745..92d2d2571 100644 --- a/examples/shaders/resources/shaders/glsl330/eratosthenes.fs +++ b/examples/shaders/resources/shaders/glsl330/eratosthenes.fs @@ -47,7 +47,7 @@ void main() { for (int i = 2; (i < max(2, sqrt(value) + 1)); i++) { - if ((value - i*floor(value/i)) == 0) + if ((value - i*floor(float(value)/float(i))) == 0) { color = Colorizer(float(i), scale); //break; // Uncomment to color by the largest factor instead