From fd488f9603f22db0312eadcdb93b7880922dc9a7 Mon Sep 17 00:00:00 2001 From: quou Date: Tue, 14 Jan 2025 00:04:55 +1100 Subject: misc refactoring --- model.cpp | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'model.cpp') diff --git a/model.cpp b/model.cpp index 79c55de..ccef4c6 100644 --- a/model.cpp +++ b/model.cpp @@ -1,3 +1,4 @@ +#include "camera.hpp" #include "maths.hpp" #include "model.hpp" @@ -257,24 +258,6 @@ void Material_Loader::unload(Asset* a) { (void)a; } -void Camera::init(float vfov, const v3f& f, const v3f& p) { - fov = vfov; - forward = f; - position = p; - near = 0.1f; - far = 1000.0f; - asp = 1.0f; -} - -m4f Camera::get_view() const { - v3f up(0.0f, 1.0f, 0.0f); - return m4f::lookat(position, position + forward, up); -} - -m4f Camera::get_proj() const { - return m4f::pers(fov, asp, near, far); -} - void Model_Instance::init(Device* dev, Heap* h, Model* model) { m = model; mvp = dev->create_buffer( -- cgit v1.2.3-54-g00ecf