This commit is contained in:
2021-10-24 15:12:59 +02:00
parent 8d5457c810
commit 23e19bf9d0
9 changed files with 49 additions and 38 deletions

View File

@@ -17,7 +17,7 @@ pub struct GameObject {
pub rotation: Quaternion<f32>,
pub scale: Vector3<f32>,
pub children: Vec<GameObject>,
pub descriptor_sets: Vec<Arc<RendererDescriptorSets>>,
pub descriptor_sets: Vec<Vec<Arc<RendererDescriptorSets>>>,
pub is_selected: bool,
pub pipeline_index: usize,
pub visible: bool,
@@ -31,7 +31,7 @@ impl GameObject {
}
pub fn init_descriptor_sets(&mut self, renderer: &mut VulkanRenderer) {
self.descriptor_sets = renderer.pipelines[self.pipeline_index].create_descriptor_set(&self.textures, renderer);
self.descriptor_sets = renderer.pipelines[self.pipeline_index].create_descriptor_sets(&self.textures, renderer);
}
pub fn _set_position(&mut self, x: f32, y: f32, z: f32) {