X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=main.rs;h=37fc5a50afb2a01dbc4692a6401dc1997f57938a;hb=994db9260d2b405e0af5668b167f19adb9936909;hp=395809257143d0935f85bcfccc594b93f7ea0298;hpb=0fd399ff858d7a264503fa0533140df9a20e4bc4;p=mandelwow.git diff --git a/main.rs b/main.rs index 3958092..37fc5a5 100644 --- a/main.rs +++ b/main.rs @@ -127,6 +127,7 @@ fn main() { set_main_loop_callback(|| { camera.update(); + let perspview = camera.get_perspview(); if !pause { // Increment time @@ -169,8 +170,7 @@ fn main() { let model = Matrix4::from_translation(sea[x][z] + Vector3 {x: 0., y: wave, z: 0.}); let uniforms = uniform! { model: array4x4(model), - view: camera.get_view(), - perspective: camera.get_perspective(), + perspview: perspview, }; shaded_cube.draw(&mut frame, &uniforms); }