diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 20:29:27 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 20:29:27 +1000 |
commit | 567d384b698151e287e31140709c93f1b92e6db4 (patch) | |
tree | e00975124d3f002a8aaa22e85475d913c6950346 /src/core/camera.c | |
parent | 13949ca02bcf9fcdfcc48ea7949f617553a260b6 (diff) |
loading joints and animations
Diffstat (limited to 'src/core/camera.c')
-rw-r--r-- | src/core/camera.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |