]> git.lizzy.rs Git - minetest.git/blobdiff - src/clouds.h
Face shading: Add shade factor comments
[minetest.git] / src / clouds.h
index 348220fb14106e3ffc2c0b6db3b45d8479eb6d98..9c6b417866cafd8546164f194f5f1a6b271e80dc 100644 (file)
@@ -53,7 +53,7 @@ class Clouds : public scene::ISceneNode
 
        virtual void render();
        
-       virtual const core::aabbox3d<f32>& getBoundingBox() const
+       virtual const aabb3f &getBoundingBox() const
        {
                return m_box;
        }
@@ -79,13 +79,16 @@ class Clouds : public scene::ISceneNode
        void updateCameraOffset(v3s16 camera_offset)
        {
                m_camera_offset = camera_offset;
-               m_box = core::aabbox3d<f32>(-BS * 1000000, m_cloud_y - BS - BS * camera_offset.Y, -BS * 1000000,
+               m_box = aabb3f(-BS * 1000000, m_cloud_y - BS - BS * camera_offset.Y, -BS * 1000000,
                        BS * 1000000, m_cloud_y + BS - BS * camera_offset.Y, BS * 1000000);
        }
 
+       void readSettings();
+
 private:
        video::SMaterial m_material;
-       core::aabbox3d<f32> m_box;
+       aabb3f m_box;
+       s16 m_passed_cloud_y;
        float m_cloud_y;
        u16 m_cloud_radius_i;
        bool m_enable_3d;