1
0
mirror of https://github.com/minetest/minetest.git synced 2024-11-11 12:50:38 +01:00

Fix bounding box of clouds

fixes #15031
This commit is contained in:
sfan5 2024-08-23 18:46:12 +02:00
parent 274c223d00
commit 56123b2fbe

View File

@ -133,8 +133,8 @@ private:
{
float height_bs = m_params.height * BS;
float thickness_bs = m_params.thickness * BS;
m_box = aabb3f(-BS * 1000000.0f, height_bs - BS * m_camera_offset.Y, -BS * 1000000.0f,
BS * 1000000.0f, height_bs + thickness_bs - BS * m_camera_offset.Y, BS * 1000000.0f);
m_box = aabb3f(-BS * 1000000.0f, height_bs, -BS * 1000000.0f,
BS * 1000000.0f, height_bs + thickness_bs, BS * 1000000.0f);
}
void updateMesh();