diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-29 16:39:47 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-29 16:39:47 +0300 |
commit | a5df5f82919ef2cd76942f379d9eca1f5264d599 (patch) | |
tree | 2a8b3f7058dd9e06ff23af44ab2c3d01e8b71605 | |
parent | b8b06ef34b2c0671adb9f0aad7ea9fb97e711dc3 (diff) | |
download | minetest-a5df5f82919ef2cd76942f379d9eca1f5264d599.tar.gz minetest-a5df5f82919ef2cd76942f379d9eca1f5264d599.tar.bz2 minetest-a5df5f82919ef2cd76942f379d9eca1f5264d599.zip |
Tweaked clouds a bit
-rw-r--r-- | src/clouds.cpp | 10 | ||||
-rw-r--r-- | src/game.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/clouds.cpp b/src/clouds.cpp index 20a1c12db..1b34bf8e0 100644 --- a/src/clouds.cpp +++ b/src/clouds.cpp @@ -119,11 +119,11 @@ void Clouds::render() v2f p0 = v2f(xi,zi)*cloud_size + world_center_of_drawing_in_noise_f; - double noise = noise2d_perlin( - (float)p_in_noise_i.X*cloud_size/BS/100, - (float)p_in_noise_i.Y*cloud_size/BS/100, - m_seed, 3, 0.5); - if(noise < 0) + double noise = noise2d_perlin_abs( + (float)p_in_noise_i.X*cloud_size/BS/200, + (float)p_in_noise_i.Y*cloud_size/BS/200, + m_seed, 3, 0.4); + if(noise < 0.8) continue; v2f p1 = p0 + v2f(1,1)*cloud_size; diff --git a/src/game.cpp b/src/game.cpp index 21d960db0..8981638a8 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -760,7 +760,7 @@ void the_game( //float cloud_height = BS*55; //float cloud_height = BS*20; Clouds *clouds = new Clouds(smgr->getRootSceneNode(), smgr, -1, - cloud_height, 0); + cloud_height, time(0)); /* Move into game |