diff --git a/code/intermediate/tutorial12-camera/src/main.rs b/code/intermediate/tutorial12-camera/src/main.rs index 8718f863..2667372a 100644 --- a/code/intermediate/tutorial12-camera/src/main.rs +++ b/code/intermediate/tutorial12-camera/src/main.rs @@ -232,7 +232,7 @@ impl State { }); // UPDATED! - let camera = camera::Camera::new((0.0, 2.0, 10.0), cgmath::Deg(-90.0), cgmath::Deg(-20.0)); + let camera = camera::Camera::new((0.0, 5.0, 10.0), cgmath::Deg(-90.0), cgmath::Deg(-20.0)); let projection = camera::Projection::new(sc_desc.width, sc_desc.height, cgmath::Deg(45.0), 0.1, 100.0); let camera_controller = camera::CameraController::new(4.0, 0.4); diff --git a/docs/.vuepress/dist b/docs/.vuepress/dist index 13aae6cd..76afdf3d 160000 --- a/docs/.vuepress/dist +++ b/docs/.vuepress/dist @@ -1 +1 @@ -Subproject commit 13aae6cde0a7b4323044c72637d4592fda707184 +Subproject commit 76afdf3da1c9c73d38d0d0235dd94cde8545553f diff --git a/docs/intermediate/tutorial12-camera/README.md b/docs/intermediate/tutorial12-camera/README.md index db648c18..39153e1f 100644 --- a/docs/intermediate/tutorial12-camera/README.md +++ b/docs/intermediate/tutorial12-camera/README.md @@ -283,7 +283,7 @@ impl State { // ... // UPDATED! - let camera = camera::Camera::new((0.0, 2.0, 10.0), cgmath::Deg(-90.0), cgmath::Deg(-20.0)); + let camera = camera::Camera::new((0.0, 5.0, 10.0), cgmath::Deg(-90.0), cgmath::Deg(-20.0)); let projection = camera::Projection::new(sc_desc.width, sc_desc.height, cgmath::Deg(45.0), 0.1, 100.0); let camera_controller = camera::CameraController::new(4.0, 0.4); @@ -404,4 +404,6 @@ fn main() { } ``` -With that we should be able to move our camera wherever we want. \ No newline at end of file +With that we should be able to move our camera wherever we want. + +![screenshot.png]() \ No newline at end of file diff --git a/docs/intermediate/tutorial12-camera/screenshot.png b/docs/intermediate/tutorial12-camera/screenshot.png new file mode 100644 index 00000000..f72c2f8f Binary files /dev/null and b/docs/intermediate/tutorial12-camera/screenshot.png differ