| 72 | } |
| 73 | |
| 74 | float noise(float x) |
| 75 | { |
| 76 | float fx = floorf(x); |
| 77 | int X = (int)fx & 255; |
| 78 | x -= fx; |
| 79 | float u = fade(x); |
| 80 | float g00 = grad(p[X ],x ); |
| 81 | float g10 = grad(p[X+1],x-1); |
| 82 | return mylerp(u,g00,g10); |
| 83 | } |
| 84 | |
| 85 | float noise(float x, float y) |
| 86 | { |
no test coverage detected