From 6d7067fd37a8084aca139ecab552982e0ee99582 Mon Sep 17 00:00:00 2001 From: hecks <42101236+hecktest@users.noreply.github.com> Date: Sun, 6 Dec 2020 00:03:40 +0100 Subject: Implement mapblock camera offset correctly (#10702) Implement mapblock camera offset correctly - reduce client jitter Co-authored-by: hecktest <> --- src/client/clientmap.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/client/clientmap.h') diff --git a/src/client/clientmap.h b/src/client/clientmap.h index 172e3a1d6..57cc4427e 100644 --- a/src/client/clientmap.h +++ b/src/client/clientmap.h @@ -35,6 +35,25 @@ struct MapDrawControl bool show_wireframe = false; }; +struct MeshBufList +{ + video::SMaterial m; + std::vector> bufs; +}; + +struct MeshBufListList +{ + /*! + * Stores the mesh buffers of the world. + * The array index is the material's layer. + * The vector part groups vertices by material. + */ + std::vector lists[MAX_TILE_LAYERS]; + + void clear(); + void add(scene::IMeshBuffer *buf, v3s16 position, u8 layer); +}; + class Client; class ITextureSource; -- cgit v1.2.3