summaryrefslogtreecommitdiff
path: root/src/core/camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/camera.c')
-rw-r--r--src/core/camera.c4
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;