I know... this takes least time, i'll have to reimplement noise functions anyway
| 93 | /* noise */ |
| 94 | static FastNoise lib_glsl_noiseGenerator; // I know... this takes least time, i'll have to reimplement noise functions anyway |
| 95 | float noise1(glm::vec4 pos) |
| 96 | { |
| 97 | lib_glsl_noiseGenerator.SetNoiseType(FastNoise::NoiseType::WhiteNoise); |
| 98 | lib_glsl_noiseGenerator.SetSeed(40000); |
| 99 | return lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w); |
| 100 | } |
| 101 | glm::vec2 noise2(glm::vec4 pos) |
| 102 | { |
| 103 | glm::vec2 ret(0.0f); |