This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define PI 3.1415926538 | |
| const float EPS = 0.001; | |
| vec4 mod289(vec4 x) { | |
| return x - floor(x * (1.0 / 289.0)) * 289.0; | |
| } | |
| float mod289(float x) { | |
| return x - floor(x * (1.0 / 289.0)) * 289.0; | |
| } | |
| vec4 permute(vec4 x) { |