diff --git a/common/noise/cloudnoise.cpp b/common/noise/cloudnoise.cpp index f52a1a6..4b5a345 100644 --- a/common/noise/cloudnoise.cpp +++ b/common/noise/cloudnoise.cpp @@ -4,12 +4,14 @@ CloudNoise::CloudNoise(int size) : Noise(size) { + int minSize = std::min(32, size); + // Some worley noises - WorleyNoise worleyNoise1(size, 3); + WorleyNoise worleyNoise1(minSize, 3); WorleyNoise worleyNoise3(size, 15); // Some perlin noises - PerlinNoise perlinNoise1(size, 3); + PerlinNoise perlinNoise1(minSize, 3); PerlinNoise perlinNoise2(size, 15); // Generate the noise