diff options
Diffstat (limited to 'src/camera.c')
-rw-r--r-- | src/camera.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/camera.c b/src/camera.c index 79f9c19..eb8fc7d 100644 --- a/src/camera.c +++ b/src/camera.c @@ -6,10 +6,8 @@ mat4 camera_view_proj(camera camera, f32 lens_height, f32 lens_width, mat4* out_ vec3 camera_direction = vec3_add(camera.position, camera.forwards); mat4 view_matrix = mat4_look_at(camera.position, camera_direction, camera.up); - if (out_view) - *out_view = view_matrix; - if (out_proj) - *out_proj = projection_matrix; + if (out_view) *out_view = view_matrix; + if (out_proj) *out_proj = projection_matrix; return mat4_mult(view_matrix, projection_matrix); }
\ No newline at end of file |