Performance improvement
This commit is contained in:
parent
ec59f251c7
commit
3f3c89b0d0
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue