summaryrefslogtreecommitdiff
path: root/game/water.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-04-07 19:38:18 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-04-07 19:38:18 +0100
commit97d4db588bfc4254e09e4305fb0525a04748f84e (patch)
tree049049622e338b3ad72d9b1639a51b65250caeba /game/water.h
parentCreate water squares/polygons only where required (diff)
downloadilt-97d4db588bfc4254e09e4305fb0525a04748f84e.tar.bz2
ilt-97d4db588bfc4254e09e4305fb0525a04748f84e.tar.xz
ilt-97d4db588bfc4254e09e4305fb0525a04748f84e.zip
Stripped down water vertex and simplified shaders
Diffstat (limited to 'game/water.h')
-rw-r--r--game/water.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/game/water.h b/game/water.h
index 20796d7..ceb7bd2 100644
--- a/game/water.h
+++ b/game/water.h
@@ -2,6 +2,7 @@
#include "chronology.h"
#include "collection.h"
+#include "config/types.h"
#include "game/worldobject.h"
#include <gfx/models/mesh.h>
#include <gfx/renderable.h>
@@ -20,10 +21,14 @@ public:
void tick(TickDuration) override;
float waveCycle {0.F};
+ struct Vertex {
+ GlobalPosition3D pos;
+ };
+
private:
void generateMeshes();
std::shared_ptr<GeoData> geoData;
- Collection<Mesh, false> meshes;
+ Collection<MeshT<Vertex>, false> meshes;
std::shared_ptr<Texture> water;
};