From a2b43f8f93365874ba46dfaacd59df9e197c32e7 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Sat, 22 Jun 2024 17:24:05 +1000 Subject: add state for heightmap --- src/systems/terrain.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/systems/terrain.h') diff --git a/src/systems/terrain.h b/src/systems/terrain.h index 62aa568..888b6f4 100644 --- a/src/systems/terrain.h +++ b/src/systems/terrain.h @@ -18,6 +18,7 @@ Future: #include "defines.h" #include "maths_types.h" #include "mem.h" +#include "ral.h" #include "render.h" #include "str.h" @@ -31,6 +32,8 @@ typedef struct heightmap { typedef struct terrain_state { arena terrain_allocator; heightmap* heightmap; // NULL = no heightmap + gpu_renderpass* hmap_renderpass; + gpu_pipeline* hmap_pipeline; } terrain_state; bool terrain_system_init(terrain_state* state); @@ -52,4 +55,4 @@ geometry_data geo_heightmap(arena* a, heightmap heightmap); // somewhere there will be an easy way to add a heightmap -// scene_add_heightmap \ No newline at end of file +// TODO: scene_add_heightmap -- cgit v1.2.3-70-g09d2