Try to make background/fog/sky color selection work better

master
Perttu Ahola 2012-03-27 22:41:07 +03:00
parent 10591d2080
commit 20e025b3d8
1 changed files with 2 additions and 2 deletions

View File

@ -598,9 +598,9 @@ int ClientMap::getBackgroundBrightness(float max_d, u32 daylight_factor,
if(z_directions[0].X < -99){ if(z_directions[0].X < -99){
for(u32 i=0; i<sizeof(z_directions)/sizeof(*z_directions); i++){ for(u32 i=0; i<sizeof(z_directions)/sizeof(*z_directions); i++){
z_directions[i] = v3f( z_directions[i] = v3f(
0.01 * myrand_range(-80, 80), 0.01 * myrand_range(-100, 100),
1.0, 1.0,
0.01 * myrand_range(-80, 80) 0.01 * myrand_range(-100, 100)
); );
z_offsets[i] = 0.01 * myrand_range(0,100); z_offsets[i] = 0.01 * myrand_range(0,100);
} }