diff --git a/earth.png b/earth.png index 1de61b0..7b3074a 100644 Binary files a/earth.png and b/earth.png differ diff --git a/protag-kun.iqm b/protag-kun.iqm new file mode 100644 index 0000000..2ab8232 Binary files /dev/null and b/protag-kun.iqm differ diff --git a/src/bin/platformer/graphics.rs b/src/bin/platformer/graphics.rs index 8a3b050..feb5ef7 100644 --- a/src/bin/platformer/graphics.rs +++ b/src/bin/platformer/graphics.rs @@ -43,6 +43,7 @@ pub struct Graphics { shader_lookup: HashMap , mesh_cube: RenderableModel, + mesh_protag_kun: RenderableModel, mesh_sky: RenderableModel, mesh_sphere: RenderableModel, @@ -95,6 +96,7 @@ impl Graphics { .collect (); let mesh_cube = renderable_from_iqm_file ("cube.iqm"); + let mesh_protag_kun = renderable_from_iqm_file ("protag-kun.iqm"); let mesh_sky = renderable_from_iqm_file ("sky-sphere.iqm"); let mesh_sphere = renderable_from_iqm_file ("sphere.iqm"); @@ -148,6 +150,7 @@ impl Graphics { Graphics { mesh_cube, + mesh_protag_kun, mesh_sky, mesh_sphere, passes, @@ -205,7 +208,7 @@ impl Graphics { glezz::uniform_matrix_4fv (unis [&u::MVP], &mvp); glezz::uniform_3fv (unis [&u::ALBEDO], &white); - self.mesh_sphere.draw_all (attrs, |_| { + self.mesh_protag_kun.draw_all (attrs, |_| { true }); }