MCPcopy Create free account
hub / github.com/dfranx/ShaderDebugger / noise1

Function noise1

src/GLSLLibrary.cpp:95–100  ·  view source on GitHub ↗

I know... this takes least time, i'll have to reimplement noise functions anyway

Source from the content-addressed store, hash-verified

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);

Callers 1

lib_glsl_noise1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected