Tweaked clouds a bit

This commit is contained in:
Perttu Ahola 2011-04-29 16:39:47 +03:00
parent b8b06ef34b
commit a5df5f8291
2 changed files with 6 additions and 6 deletions

@ -119,11 +119,11 @@ void Clouds::render()
v2f p0 = v2f(xi,zi)*cloud_size + world_center_of_drawing_in_noise_f; v2f p0 = v2f(xi,zi)*cloud_size + world_center_of_drawing_in_noise_f;
double noise = noise2d_perlin( double noise = noise2d_perlin_abs(
(float)p_in_noise_i.X*cloud_size/BS/100, (float)p_in_noise_i.X*cloud_size/BS/200,
(float)p_in_noise_i.Y*cloud_size/BS/100, (float)p_in_noise_i.Y*cloud_size/BS/200,
m_seed, 3, 0.5); m_seed, 3, 0.4);
if(noise < 0) if(noise < 0.8)
continue; continue;
v2f p1 = p0 + v2f(1,1)*cloud_size; v2f p1 = p0 + v2f(1,1)*cloud_size;

@ -760,7 +760,7 @@ void the_game(
//float cloud_height = BS*55; //float cloud_height = BS*55;
//float cloud_height = BS*20; //float cloud_height = BS*20;
Clouds *clouds = new Clouds(smgr->getRootSceneNode(), smgr, -1, Clouds *clouds = new Clouds(smgr->getRootSceneNode(), smgr, -1,
cloud_height, 0); cloud_height, time(0));
/* /*
Move into game Move into game