Skip to content

Commit 16d8ff7

Browse files
authored
Update cubicNoise.cpp
1 parent 69025ac commit 16d8ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c++/cubicNoise.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ float CubicNoise::sample(const CubicNoiseConfig &config, const float x)
1212
random(config.seed, tile(xi, config.periodx), 0),
1313
random(config.seed, tile(xi + 1, config.periodx), 0),
1414
random(config.seed, tile(xi + 2, config.periodx), 0),
15-
lerp) * 0.75f + 0.125f;
15+
lerp) * 0.666666f + 0.166666f;
1616
}
1717

1818
float CubicNoise::sample(const CubicNoiseConfig &config, const float x, const float y)

0 commit comments

Comments
 (0)