From 1bb374c89e800148ee0fc543fc0fc53926c86317 Mon Sep 17 00:00:00 2001 From: Hiroaki Yutani Date: Sun, 11 Apr 2021 17:09:10 +0900 Subject: [PATCH] docs --- docs/beginner/tutorial6-uniforms/README.md | 2 +- docs/intermediate/tutorial12-camera/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/beginner/tutorial6-uniforms/README.md b/docs/beginner/tutorial6-uniforms/README.md index 56cc54a4..10766bc7 100644 --- a/docs/beginner/tutorial6-uniforms/README.md +++ b/docs/beginner/tutorial6-uniforms/README.md @@ -22,7 +22,7 @@ struct Camera { impl Camera { fn build_view_projection_matrix(&self) -> cgmath::Matrix4 { // 1. - let view = cgmath::Matrix4::look_at(self.eye, self.target, self.up); + let view = cgmath::Matrix4::look_at_rh(self.eye, self.target, self.up); // 2. let proj = cgmath::perspective(cgmath::Deg(self.fovy), self.aspect, self.znear, self.zfar); diff --git a/docs/intermediate/tutorial12-camera/README.md b/docs/intermediate/tutorial12-camera/README.md index 25163a27..e47136d8 100644 --- a/docs/intermediate/tutorial12-camera/README.md +++ b/docs/intermediate/tutorial12-camera/README.md @@ -50,7 +50,7 @@ impl Camera { } pub fn calc_matrix(&self) -> Matrix4 { - Matrix4::look_at_dir( + Matrix4::look_to_rh( self.position, Vector3::new( self.yaw.0.cos(),