aboutsummaryrefslogtreecommitdiff
path: root/src/clouds.h
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-01-26 11:40:21 +0100
committerNovatux <nathanael.courant@laposte.net>2014-03-04 20:12:10 +0100
commit062de11b4cff30861dd4e9eb56f131d821f34b51 (patch)
tree37bdcbacb355abfe1f8091307222e430e58b78d8 /src/clouds.h
parent8e15179e7d896851c6f5814fc6524c86b26ce2e3 (diff)
downloadminetest-062de11b4cff30861dd4e9eb56f131d821f34b51.tar.gz
minetest-062de11b4cff30861dd4e9eb56f131d821f34b51.tar.bz2
minetest-062de11b4cff30861dd4e9eb56f131d821f34b51.zip
Fix rendering glitches when far from the center of the map
Diffstat (limited to 'src/clouds.h')
-rw-r--r--src/clouds.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clouds.h b/src/clouds.h
index 8f8b19faf..d718e56bf 100644
--- a/src/clouds.h
+++ b/src/clouds.h
@@ -66,6 +66,11 @@ public:
void step(float dtime);
void update(v2f camera_p, video::SColorf color);
+
+ void updateCameraOffset(v3s16 camera_offset)
+ {
+ m_camera_offset = camera_offset;
+ }
private:
video::SMaterial m_material;
@@ -76,6 +81,7 @@ private:
u32 m_seed;
v2f m_camera_pos;
float m_time;
+ v3s16 m_camera_offset;
};