From 2b1f81ba329b17a18cdd75604625076ee614f5ef Mon Sep 17 00:00:00 2001 From: ladevieq Date: Wed, 20 Jan 2021 22:08:03 +0100 Subject: Update fov on window resize --- include/camera.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/camera.hpp b/include/camera.hpp index 43ed755..fd17947 100644 --- a/include/camera.hpp +++ b/include/camera.hpp @@ -14,8 +14,11 @@ class camera { float focus_dist ); + void set_aspect_ratio(float aspect_ratio); + point3 position; + vec3 forward; vec3 right; vec3 up; @@ -25,7 +28,9 @@ class camera { vec3 first_pixel; float lens_radius; - float padding[3]; + float fov; + float focus_distance; + float padding; }; #endif // !__CAMERA_HPP_ -- cgit v1.3