summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-27 22:38:25 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-27 22:38:25 +1000
commitca4c92f7b74ebbfc80bd24630cd0ad3def6c20fc (patch)
tree97add3d530402670068a114fc803658d562993e1 /examples
parentf37e974a19fca37d0e7999c7ffc49dcbcd50b081 (diff)
serialize transform
Diffstat (limited to 'examples')
-rw-r--r--examples/game_demo/game_demo.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/game_demo/game_demo.c b/examples/game_demo/game_demo.c
index 1bb2a63..c510ee0 100644
--- a/examples/game_demo/game_demo.c
+++ b/examples/game_demo/game_demo.c
@@ -47,15 +47,11 @@ int main() {
Heightmap hmap = Heightmap_FromImage(str8("assets/test_heightmap.png"));
Terrain_Storage* terrain = Render_GetTerrainStorage();
Terrain_LoadHeightmap(terrain, hmap, 2.0, false);
- // assert(Terrain_IsActive());
// --- Skybox
Skybox skybox = Skybox_Create(faces, 6);
// --- Models
- // ModelHandle player_model = ModelLoad_gltf("Player Model", "assets/demo/player.gltf");
- // ModelHandle sword_model = ModelLoad("Sword Model", "assets/demo/sword.gltf");
-
// create a wooden crate - loads mesh and material directly rather than via loading a model from a
// gltf file
Geometry cube_geo = Geo_CreateCuboid(f32x3(2.0, 2.0, 2.0));
@@ -114,7 +110,7 @@ int main() {
Shadow_DrawDebugQuad();
}
- // Terrain_Draw(terrain);
+ Terrain_Draw(terrain);
// END Draw calls
Frame_Draw();