1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00: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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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