summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/game_demo/game_demo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/game_demo/game_demo.c b/examples/game_demo/game_demo.c
index 73c879c..0287f93 100644
--- a/examples/game_demo/game_demo.c
+++ b/examples/game_demo/game_demo.c
@@ -49,7 +49,8 @@ int main() {
// --- 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
+
+ // 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));
Mesh crate_mesh = Mesh_Create(&cube_geo, false); // dont free as we may use later
TextureHandle albedo_map = TextureLoadFromFile("assets/demo/crate/Wood_Crate_001_basecolor.jpg");