From e0a047ac1e2cf18c3b0f23f31f869eeda767503e Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:40:31 +1000 Subject: try getting glfw passthrough and egui to work --- src/systems/terrain.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/systems/terrain.h') 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 -- cgit v1.2.3-70-g09d2