forked from Mirrorlandia_minetest/minetest
Fix cloud fog being broken for high clouds
This commit is contained in:
parent
673c29f7ea
commit
ff48619a85
@ -352,7 +352,7 @@ void Clouds::update(const v3f &camera_p, const video::SColorf &color_diffuse)
|
|||||||
// is the camera inside the cloud mesh?
|
// is the camera inside the cloud mesh?
|
||||||
m_camera_inside_cloud = false; // default
|
m_camera_inside_cloud = false; // default
|
||||||
if (m_enable_3d) {
|
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 &&
|
if (camera_height >= m_box.MinEdge.Y &&
|
||||||
camera_height <= m_box.MaxEdge.Y) {
|
camera_height <= m_box.MaxEdge.Y) {
|
||||||
v2f camera_in_noise;
|
v2f camera_in_noise;
|
||||||
|
Loading…
Reference in New Issue
Block a user