Skip to content

Commit

Permalink
fix stupid 'optimization' bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-wes committed May 22, 2024
1 parent 9b55080 commit 79c18e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions simplex~.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,10 @@ static t_float snoise4(t_float *pos, t_float sc, t_float coeff, unsigned char *p
j2 = simplex[c][1] > 1;
k2 = simplex[c][2] > 1;
l2 = simplex[c][3] > 1;
i3 = simplex[c][0];
j3 = simplex[c][1];
k3 = simplex[c][2];
l3 = simplex[c][3];
i3 = simplex[c][0] > 0;
j3 = simplex[c][1] > 0;
k3 = simplex[c][2] > 0;
l3 = simplex[c][3] > 0;
x1 = x0 - i1 + G4;
y1 = y0 - j1 + G4;
z1 = z0 - k1 + G4;
Expand Down

0 comments on commit 79c18e2

Please sign in to comment.