diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-26 13:40:31 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-26 13:40:31 +1000 |
commit | e0a047ac1e2cf18c3b0f23f31f869eeda767503e (patch) | |
tree | a14e3eccec6e845778798fe24acc4c85f8e4da4b /src/systems/terrain.h | |
parent | b28de1c7c87683b0645368f5393734f1db4ffd74 (diff) |
try getting glfw passthrough and egui to work
Diffstat (limited to 'src/systems/terrain.h')
-rw-r--r-- | src/systems/terrain.h | 5 |
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 |