give protag-kun their own mesh

main
_ 2021-12-23 00:25:54 +00:00
parent ed56c75169
commit 3803a48c13
3 changed files with 4 additions and 1 deletions

BIN
earth.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 898 B

After

Width:  |  Height:  |  Size: 925 B

BIN
protag-kun.iqm Normal file

Binary file not shown.

View File

@ -43,6 +43,7 @@ pub struct Graphics {
shader_lookup: HashMap <u32, usize>,
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
});
}