Components

This commit is contained in:
2020-07-04 03:18:14 +02:00
parent 002db530be
commit 0a3f89c150
4 changed files with 78 additions and 36 deletions

View File

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