Skip to content

Commit ff48619

Browse files
Wuzzy2sfan5
authored andcommittedMay 29, 2021
Fix cloud fog being broken for high clouds
1 parent 673c29f commit ff48619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/client/clouds.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ void Clouds::update(const v3f &camera_p, const video::SColorf &color_diffuse)
352352
// is the camera inside the cloud mesh?
353353
m_camera_inside_cloud = false; // default
354354
if (m_enable_3d) {
355-
float camera_height = camera_p.Y;
355+
float camera_height = camera_p.Y - BS * m_camera_offset.Y;
356356
if (camera_height >= m_box.MinEdge.Y &&
357357
camera_height <= m_box.MaxEdge.Y) {
358358
v2f camera_in_noise;

0 commit comments

Comments
 (0)
Please sign in to comment.