mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix rendering glitches when far from the center of the map
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user