change method name

This commit is contained in:
SeanOMik 2023-05-18 23:55:32 -04:00
parent b957414143
commit 5d81d0acfe
Signed by: SeanOMik
GPG Key ID: 568F326C7EB33ACB
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ impl Transform {
}
}
pub fn get_matrix(&self) -> glam::Mat4 {
pub fn matrix(&self) -> glam::Mat4 {
self.matrix
}

View File

@ -408,7 +408,7 @@ impl Renderer for BasicRenderer {
}
// Update transform buffer, and bind to the bind group
self.queue.write_buffer(&self.transform_buffer, 0, bytemuck::cast_slice(&[job.transform().get_matrix()]));
self.queue.write_buffer(&self.transform_buffer, 0, bytemuck::cast_slice(&[job.transform().matrix()]));
render_pass.set_bind_group(1, &self.transform_bind_group, &[]);
// There will always be a camera (hopefully)