summaryrefslogtreecommitdiff
path: root/src/systems/terrain.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/systems/terrain.h')
-rw-r--r--src/systems/terrain.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systems/terrain.h b/src/systems/terrain.h
index 2e05a14..664aa8e 100644
--- a/src/systems/terrain.h
+++ b/src/systems/terrain.h
@@ -35,6 +35,7 @@ typedef struct Heightmap {
Heightmap heightmap; // NULL = no heightmap
GPU_Renderpass* hmap_renderpass;
GPU_Pipeline* hmap_pipeline;
+ TextureHandle texture;
bool hmap_loaded;
BufferHandle vertex_buffer;
@@ -69,4 +70,8 @@ Vec3 Heightmap_NormalXZ(const Heightmap* hmap, f32 x, f32 z);
// /** @brief Generate the `geometry_data` for a heightmap ready to be uploaded to the GPU */
// Geometry geo_heightmap(arena* a, Heightmap heightmap);
+typedef struct TerrainUniforms {
+ TextureHandle tex_slot_1;
+} TerrainUniforms;
+
ShaderDataLayout TerrainUniforms_GetLayout(void* data); \ No newline at end of file