Browse Source

Corrected issue with floor() #1377

pull/1381/head
raysan5 4 years ago
parent
commit
405d3fac0c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      examples/shaders/resources/shaders/glsl330/eratosthenes.fs

+ 1
- 1
examples/shaders/resources/shaders/glsl330/eratosthenes.fs View File

@ -47,7 +47,7 @@ void main()
{ {
for (int i = 2; (i < max(2, sqrt(value) + 1)); i++) for (int i = 2; (i < max(2, sqrt(value) + 1)); i++)
{ {
if ((value - i*floor(value/i)) == 0nf">)
if ((value - i*floor(float(value)/float(i))) == 0err">)
{ {
color = Colorizer(float(i), scale); color = Colorizer(float(i), scale);
//break; // Uncomment to color by the largest factor instead //break; // Uncomment to color by the largest factor instead

Loading…
Cancel
Save