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:
@@ -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
|
||||
|
Reference in New Issue
Block a user