From 97d4db588bfc4254e09e4305fb0525a04748f84e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 7 Apr 2024 19:38:18 +0100 Subject: Stripped down water vertex and simplified shaders --- game/water.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'game/water.h') 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 #include @@ -20,10 +21,14 @@ public: void tick(TickDuration) override; float waveCycle {0.F}; + struct Vertex { + GlobalPosition3D pos; + }; + private: void generateMeshes(); std::shared_ptr geoData; - Collection meshes; + Collection, false> meshes; std::shared_ptr water; }; -- cgit v1.2.3