We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69025ac commit 16d8ff7Copy full SHA for 16d8ff7
c++/cubicNoise.cpp
@@ -12,7 +12,7 @@ float CubicNoise::sample(const CubicNoiseConfig &config, const float x)
12
random(config.seed, tile(xi, config.periodx), 0),
13
random(config.seed, tile(xi + 1, config.periodx), 0),
14
random(config.seed, tile(xi + 2, config.periodx), 0),
15
- lerp) * 0.75f + 0.125f;
+ lerp) * 0.666666f + 0.166666f;
16
}
17
18
float CubicNoise::sample(const CubicNoiseConfig &config, const float x, const float y)
0 commit comments