diff options
| author | raysan5 <[email protected]> | 2020-09-15 11:40:51 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-09-15 11:40:51 +0200 |
| commit | 405d3fac0c12226807a4546e775e25d4293a5fd5 (patch) | |
| tree | 25929464c36fc35ca707e79f10aa346c34396e46 /examples | |
| parent | 0983d7b45c14abb54b70551f17c69a287e9d6e40 (diff) | |
| download | raylib-405d3fac0c12226807a4546e775e25d4293a5fd5.tar.gz raylib-405d3fac0c12226807a4546e775e25d4293a5fd5.zip | |
Corrected issue with floor() #1377
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/shaders/resources/shaders/glsl330/eratosthenes.fs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shaders/resources/shaders/glsl330/eratosthenes.fs b/examples/shaders/resources/shaders/glsl330/eratosthenes.fs index a6390b74..92d2d257 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 |
