Skip to content

Commit

Permalink
Fix bounding box of clouds
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Aug 23, 2024
1 parent 274c223 commit 56123b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/clouds.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ class Clouds : public scene::ISceneNode
{
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();
Expand Down

0 comments on commit 56123b2

Please sign in to comment.