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

Function noise3

src/GLSLLibrary.cpp:113–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 return ret;
112 }
113 glm::vec3 noise3(glm::vec4 pos)
114 {
115 glm::vec3 ret(0.0f);
116
117 lib_glsl_noiseGenerator.SetNoiseType(FastNoise::NoiseType::WhiteNoise);
118 lib_glsl_noiseGenerator.SetSeed(40000);
119 ret.x = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
120 lib_glsl_noiseGenerator.SetSeed(41000);
121 ret.y = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
122 lib_glsl_noiseGenerator.SetSeed(42000);
123 ret.z = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
124
125 return ret;
126 }
127 glm::vec4 noise4(glm::vec4 pos)
128 {
129 glm::vec4 ret(0.0f);

Callers 1

lib_glsl_noise3Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected