summaryrefslogtreecommitdiff
path: root/game/surface.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-04-10 08:49:35 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-04-10 08:49:35 +0100
commit90b3b10170d7a7f278338b74d84ae6efceaacf77 (patch)
tree771e9fa22b6fa8c2b2720f1c47cc8182aeb69f67 /game/surface.h
parentAdd GeoData face property for surface type (diff)
downloadilt-90b3b10170d7a7f278338b74d84ae6efceaacf77.tar.bz2
ilt-90b3b10170d7a7f278338b74d84ae6efceaacf77.tar.xz
ilt-90b3b10170d7a7f278338b74d84ae6efceaacf77.zip
Introduce a basic terrain surface type asset
Diffstat (limited to 'game/surface.h')
-rw-r--r--game/surface.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/game/surface.h b/game/surface.h
new file mode 100644
index 0000000..ccc5c6c
--- /dev/null
+++ b/game/surface.h
@@ -0,0 +1,11 @@
+#pragma once
+
+#include "assetFactory/asset.h"
+
+struct Surface : public Asset {
+ friend Persistence::SelectionPtrBase<std::shared_ptr<Surface>>;
+ bool persist(Persistence::PersistenceStore & store) override;
+
+ glm::vec3 colorBias;
+ float quality;
+};