diff options
author | Wuzzy <Wuzzy2@mail.ru> | 2021-05-25 23:44:41 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-05-29 11:44:31 +0200 |
commit | ff48619a857da2158768314f08191994b33ffee9 (patch) | |
tree | fab4e5c886a3a227b4c379d074ad0f0ede0512fb /src | |
parent | 673c29f7ea6735c15596a118fe7e6100d4a466e0 (diff) | |
download | minetest-ff48619a857da2158768314f08191994b33ffee9.tar.gz minetest-ff48619a857da2158768314f08191994b33ffee9.tar.bz2 minetest-ff48619a857da2158768314f08191994b33ffee9.zip |
Fix cloud fog being broken for high clouds
Diffstat (limited to 'src')
-rw-r--r-- | src/client/clouds.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/clouds.cpp b/src/client/clouds.cpp index 5008047af..383a1d799 100644 --- a/src/client/clouds.cpp +++ b/src/client/clouds.cpp @@ -352,7 +352,7 @@ void Clouds::update(const v3f &camera_p, const video::SColorf &color_diffuse) // is the camera inside the cloud mesh? m_camera_inside_cloud = false; // default if (m_enable_3d) { - float camera_height = camera_p.Y; + float camera_height = camera_p.Y - BS * m_camera_offset.Y; if (camera_height >= m_box.MinEdge.Y && camera_height <= m_box.MaxEdge.Y) { v2f camera_in_noise; |