give protag-kun their own mesh
parent
ed56c75169
commit
3803a48c13
BIN
earth.png
BIN
earth.png
Binary file not shown.
Before Width: | Height: | Size: 898 B After Width: | Height: | Size: 925 B |
Binary file not shown.
|
@ -43,6 +43,7 @@ pub struct Graphics {
|
||||||
shader_lookup: HashMap <u32, usize>,
|
shader_lookup: HashMap <u32, usize>,
|
||||||
|
|
||||||
mesh_cube: RenderableModel,
|
mesh_cube: RenderableModel,
|
||||||
|
mesh_protag_kun: RenderableModel,
|
||||||
mesh_sky: RenderableModel,
|
mesh_sky: RenderableModel,
|
||||||
mesh_sphere: RenderableModel,
|
mesh_sphere: RenderableModel,
|
||||||
|
|
||||||
|
@ -95,6 +96,7 @@ impl Graphics {
|
||||||
.collect ();
|
.collect ();
|
||||||
|
|
||||||
let mesh_cube = renderable_from_iqm_file ("cube.iqm");
|
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_sky = renderable_from_iqm_file ("sky-sphere.iqm");
|
||||||
let mesh_sphere = renderable_from_iqm_file ("sphere.iqm");
|
let mesh_sphere = renderable_from_iqm_file ("sphere.iqm");
|
||||||
|
|
||||||
|
@ -148,6 +150,7 @@ impl Graphics {
|
||||||
|
|
||||||
Graphics {
|
Graphics {
|
||||||
mesh_cube,
|
mesh_cube,
|
||||||
|
mesh_protag_kun,
|
||||||
mesh_sky,
|
mesh_sky,
|
||||||
mesh_sphere,
|
mesh_sphere,
|
||||||
passes,
|
passes,
|
||||||
|
@ -205,7 +208,7 @@ impl Graphics {
|
||||||
glezz::uniform_matrix_4fv (unis [&u::MVP], &mvp);
|
glezz::uniform_matrix_4fv (unis [&u::MVP], &mvp);
|
||||||
glezz::uniform_3fv (unis [&u::ALBEDO], &white);
|
glezz::uniform_3fv (unis [&u::ALBEDO], &white);
|
||||||
|
|
||||||
self.mesh_sphere.draw_all (attrs, |_| {
|
self.mesh_protag_kun.draw_all (attrs, |_| {
|
||||||
true
|
true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue