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

Function noise2

src/GLSLLibrary.cpp:101–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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);
104
105 lib_glsl_noiseGenerator.SetNoiseType(FastNoise::NoiseType::WhiteNoise);
106 lib_glsl_noiseGenerator.SetSeed(40000);
107 ret.x = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
108 lib_glsl_noiseGenerator.SetSeed(41000);
109 ret.y = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
110
111 return ret;
112 }
113 glm::vec3 noise3(glm::vec4 pos)
114 {
115 glm::vec3 ret(0.0f);

Callers 1

lib_glsl_noise2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected