diff --git a/src/math/transform.rs b/src/math/transform.rs index eaef717..c05a01a 100755 --- a/src/math/transform.rs +++ b/src/math/transform.rs @@ -34,7 +34,7 @@ impl Transform { } } - pub fn get_matrix(&self) -> glam::Mat4 { + pub fn matrix(&self) -> glam::Mat4 { self.matrix } diff --git a/src/render/renderer.rs b/src/render/renderer.rs index 965da22..dc5432d 100755 --- a/src/render/renderer.rs +++ b/src/render/renderer.rs @@ -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)