mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix rendering glitches when far from the center of the map
This commit is contained in:
parent
8e15179e7d
commit
062de11b4c
17 changed files with 112 additions and 35 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue