Select stuff (hit detection is still off)

This commit is contained in:
2021-03-19 02:43:28 +01:00
parent 02f39453ac
commit ff80f7b9aa
8 changed files with 43 additions and 14 deletions

View File

@@ -140,8 +140,7 @@ impl Drawcall for DefaultShader {
for i in 0..game_data.game_objects.len() {
let game_object = &game_data.game_objects[i];
let mesh = &game_data.meshes[game_object.mesh_index];
let mut push_constants = game_data.push_constants.clone();
push_constants.model = game_object.get_model_matrix().into();
let push_constants = game_object.get_push_constants();
builder.draw_indexed(
self.pipeline.clone(),