kitgit

tirbofish/dropbear · diff

048f959 · tk

changed readme.md to update for linux build docs, fixed up the borked .eucp file where it copied to dir.

Unverified

diff --git a/README.md b/README.md
index 5fcbb4a..1386469 100644
--- a/README.md
+++ b/README.md
@@ -11,7 +11,20 @@ If you might have not realised, all the crates/projects names are after Australi
 
 ## Build
 
-To build, clone the repository, then build it. It will build in debug mode, and use a lot of packages, so if your CPU is not fast enough for building you should brew a cup of coffee during the build time.
+To build, ensure build requirements, clone the repository, then build it. It will build in debug mode, and use a lot of packages, so if your CPU is not fast enough for building you should brew a cup of coffee during the build time.
+
+With Unix systems (macOS not tested), you will have to download a couple dependencies if building locally:
+<!-- If you have a macOS system, please create a PR and add your own implementation. I know you need to use brew, but I don't know what dependencies to install.  -->
+
+```bash
+# ubuntu, adapt to your own OS
+sudo apt install libudev-dev pkg-config libssl-dev clang
+
+# if on arm devices where russimp cannot compile
+sudo apt install assimp-utils
+```
+
+After downloading the requirements, you are free to build it using cargo.
 
 ```bash
 git clone git@github.com:4tkbytes/dropbear
diff --git a/dropbear-engine/src/camera.rs b/dropbear-engine/src/camera.rs
index 6454802..bdcb0c1 100644
--- a/dropbear-engine/src/camera.rs
+++ b/dropbear-engine/src/camera.rs
@@ -34,6 +34,9 @@ pub struct Camera {
 
     pub speed: f32,
     pub sensitivity: f32,
+
+    pub view_mat: Matrix4<f32>,
+    pub proj_mat: Matrix4<f32>,
 }
 
 impl Camera {
@@ -117,10 +120,13 @@ impl Camera {
         self.eye
     }
 
-    fn build_vp(&self) -> Matrix4<f32> {
+    fn build_vp(&mut self) -> Matrix4<f32> {
         let view = Matrix4::<f32>::look_at_rh(&self.eye, &self.target, &self.up);
         let proj = Perspective3::new(self.aspect, self.fov_y.to_radians(), self.znear, self.zfar);
-        return OPENGL_TO_WGPU_MATRIX * proj.to_homogeneous() * view;
+        self.view_mat = view.clone();

Large diffs are not rendered by default. Showing the first 50 of 494 lines. Show full diff