mirror of
https://github.com/minetest/minetest.git
synced 2024-12-24 23:22:24 +01:00
Fog depend on humidity
This commit is contained in:
parent
4c704fe306
commit
62bc5331aa
@ -2860,6 +2860,8 @@ void the_game(
|
|||||||
fog_range = 100000*BS;
|
fog_range = 100000*BS;
|
||||||
else {
|
else {
|
||||||
fog_range = draw_control.wanted_range*BS + 0.0*MAP_BLOCKSIZE*BS;
|
fog_range = draw_control.wanted_range*BS + 0.0*MAP_BLOCKSIZE*BS;
|
||||||
|
if(g_settings->getBool("weather"))
|
||||||
|
fog_range *= (1.5 - 1.4*(float)client.getEnv().getClientMap().getHumidity(pos_i)/100);
|
||||||
fog_range = MYMIN(fog_range, (draw_control.farthest_drawn+20)*BS);
|
fog_range = MYMIN(fog_range, (draw_control.farthest_drawn+20)*BS);
|
||||||
fog_range *= 0.9;
|
fog_range *= 0.9;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user