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:
parent
013c6ee166
commit
39c2af9710
3 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue