Skip to content

Commit

Permalink
Use Vec3::ZERO
Browse files Browse the repository at this point in the history
  • Loading branch information
a1phyr committed Mar 21, 2022
1 parent 9ff7158 commit 6fbb47c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wgpu/examples/cube/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl Example {
let projection = glam::Mat4::perspective_rh(consts::FRAC_PI_4, aspect_ratio, 1.0, 10.0);
let view = glam::Mat4::look_at_rh(
glam::Vec3::new(1.5f32, -5.0, 3.0),
glam::Vec3::new(0f32, 0.0, 0.0),
glam::Vec3::ZERO,
glam::Vec3::Z,
);
projection * view
Expand Down
2 changes: 1 addition & 1 deletion wgpu/examples/water/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Example {

let flipped_view = glam::Mat4::look_at_rh(
glam::Vec3::new(CAMERA.x, -CAMERA.y, CAMERA.z),
glam::Vec3::new(0f32, 0.0, 0.0),
glam::Vec3::ZERO,
glam::Vec3::Y,
);

Expand Down

0 comments on commit 6fbb47c

Please sign in to comment.