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

Function noise4

src/GLSLLibrary.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 return ret;
126 }
127 glm::vec4 noise4(glm::vec4 pos)
128 {
129 glm::vec4 ret(0.0f);
130
131 lib_glsl_noiseGenerator.SetNoiseType(FastNoise::NoiseType::WhiteNoise);
132 lib_glsl_noiseGenerator.SetSeed(40000);
133 ret.x = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
134 lib_glsl_noiseGenerator.SetSeed(41000);
135 ret.y = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
136 lib_glsl_noiseGenerator.SetSeed(42000);
137 ret.z = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
138 lib_glsl_noiseGenerator.SetSeed(43000);
139 ret.w = lib_glsl_noiseGenerator.GetWhiteNoise(pos.x, pos.y, pos.z, pos.w);
140
141 return ret;
142 }
143
144 /* trigonometry */
145 bv_variable lib_glsl_acosh(bv_program* prog, u8 count, bv_variable* args)

Callers 1

lib_glsl_noise4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected