broken lighting
This commit is contained in:
@@ -13,10 +13,10 @@ impl GameObject {
|
||||
GameObject { mesh_index: mesh, texture_index, model_matrix: Matrix4::identity() }
|
||||
}
|
||||
|
||||
pub fn set_position(&mut self, x: f32, y: f32, z: f32) {
|
||||
self.model_matrix.w.x = x;
|
||||
self.model_matrix.w.y = y;
|
||||
self.model_matrix.w.z = z;
|
||||
pub fn set_position(&mut self, pos: (f32, f32, f32)) {
|
||||
self.model_matrix.w.x = pos.0;
|
||||
self.model_matrix.w.y = pos.1;
|
||||
self.model_matrix.w.z = pos.2;
|
||||
}
|
||||
|
||||
pub fn get_position(&self) -> Vector3<f32> {
|
||||
|
||||
Reference in New Issue
Block a user