From 062de11b4cff30861dd4e9eb56f131d821f34b51 Mon Sep 17 00:00:00 2001 From: Novatux Date: Sun, 26 Jan 2014 11:40:21 +0100 Subject: Fix rendering glitches when far from the center of the map --- src/camera.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/camera.h') diff --git a/src/camera.h b/src/camera.h index aa9139148..df40e3b9f 100644 --- a/src/camera.h +++ b/src/camera.h @@ -79,6 +79,12 @@ public: { return m_camera_direction; } + + // Get the camera offset + inline v3s16 getOffset() const + { + return m_camera_offset; + } // Horizontal field of view inline f32 getFovX() const @@ -144,6 +150,8 @@ private: v3f m_camera_position; // Absolute camera direction v3f m_camera_direction; + // Camera offset + v3s16 m_camera_offset; // Field of view and aspect ratio stuff f32 m_aspect; -- cgit v1.2.3