From 567d384b698151e287e31140709c93f1b92e6db4 Mon Sep 17 00:00:00 2001 From: omniscient <17525998+omnisci3nce@users.noreply.github.com> Date: Tue, 13 Aug 2024 20:29:27 +1000 Subject: loading joints and animations --- src/core/camera.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/camera.c') diff --git a/src/core/camera.c b/src/core/camera.c index 7bddb7e..c996d7d 100644 --- a/src/core/camera.c +++ b/src/core/camera.c @@ -12,7 +12,7 @@ Camera Camera_Create(Vec3 pos, Vec3 front, Vec3 up, f32 fov) { return c; } -Mat4 Camera_ViewProj(Camera *c, f32 lens_height, f32 lens_width, Mat4 *out_view, Mat4 *out_proj) { +Mat4 Camera_ViewProj(Camera* c, f32 lens_height, f32 lens_width, Mat4* out_view, Mat4* out_proj) { Mat4 proj = mat4_perspective(c->fov, lens_width / lens_height, 0.1, 1000.0); Vec3 camera_direction = vec3_add(c->position, c->front); Mat4 view = mat4_look_at(c->position, camera_direction, c->up); @@ -25,7 +25,7 @@ Mat4 Camera_ViewProj(Camera *c, f32 lens_height, f32 lens_width, Mat4 *out_view, return mat4_mult(view, proj); } -void FlyCamera_Update(Camera *camera) { +void FlyCamera_Update(Camera* camera) { static f32 yaw = 0.0; static f32 pitch = 0.0; -- cgit v1.2.3-70-g09d2