ソースを参照

Corrected issue with floor() #1377

pull/1381/head
raysan5 4年前
コミット
405d3fac0c
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      examples/shaders/resources/shaders/glsl330/eratosthenes.fs

+ 1
- 1
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)) == 0nf">)
if ((value - i*floor(float(value)/float(i))) == 0err">)
{
color = Colorizer(float(i), scale);
//break; // Uncomment to color by the largest factor instead

読み込み中…
キャンセル
保存