mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
v2d & aabbox3d<f32> & sky cleanups
* Sky: rename Box => m_box and inline getBoundingBox * Uniformize aabbox3d<f32> to aabb3f
This commit is contained in:
parent
24b312cc08
commit
fefa148d69
21 changed files with 39 additions and 44 deletions
|
@ -42,7 +42,8 @@ public:
|
|||
//! renders the node.
|
||||
virtual void render();
|
||||
|
||||
virtual const core::aabbox3d<f32>& getBoundingBox() const;
|
||||
virtual const aabb3f &getBoundingBox() const
|
||||
{ return m_box; }
|
||||
|
||||
// Used by Irrlicht for optimizing rendering
|
||||
virtual video::SMaterial& getMaterial(u32 i)
|
||||
|
@ -74,7 +75,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
core::aabbox3d<f32> Box;
|
||||
aabb3f m_box;
|
||||
video::SMaterial m_materials[SKY_MATERIAL_COUNT];
|
||||
|
||||
// How much sun & moon transition should affect horizon color
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue