1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 09:25:37 +02:00

Render clouds as flat when thickness is zero (#14897)

This commit is contained in:
sfan5
2024-08-12 15:35:00 +02:00
committed by GitHub
parent 013c6ee166
commit 39c2af9710
3 changed files with 11 additions and 5 deletions

View File

@@ -145,6 +145,11 @@ private:
bool gridFilled(int x, int y) const;
// Are the clouds 3D?
inline bool is3D() const {
return m_enable_3d && m_params.thickness >= 0.01f;
}
video::SMaterial m_material;
irr_ptr<scene::SMeshBuffer> m_meshbuffer;
// Value of m_origin at the time the mesh was last updated