From 43fcfbfe05578d7471d40c8c087fd04e24b264b5 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Sun, 14 Jun 2015 21:13:36 +0200 Subject: Improved parallax mapping. Generate heightmaps on the fly. --- src/mapblock_mesh.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mapblock_mesh.h') diff --git a/src/mapblock_mesh.h b/src/mapblock_mesh.h index b334ce469..72c90c3e5 100644 --- a/src/mapblock_mesh.h +++ b/src/mapblock_mesh.h @@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include class IGameDef; +class IShaderSource; /* Mesh making stuff @@ -123,6 +124,8 @@ public: private: scene::SMesh *m_mesh; IGameDef *m_gamedef; + ITextureSource *m_tsrc; + IShaderSource *m_shdrsrc; bool m_enable_shaders; bool m_enable_highlighting; @@ -165,13 +168,12 @@ struct PreMeshBuffer { TileSpec tile; std::vector indices; - std::vector vertices; + std::vector vertices; }; struct MeshCollector { std::vector prebuffers; - void append(const TileSpec &material, const video::S3DVertex *vertices, u32 numVertices, const u16 *indices, u32 numIndices); -- cgit v1.2.3