From 3b567beadb6275adf4b60e1eca003e44014c3786 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Tue, 22 Dec 2020 23:19:59 +0100 Subject: Defocus blur & randow scene generation --- include/camera.hpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include/camera.hpp') diff --git a/include/camera.hpp b/include/camera.hpp index 0b3d20e..88ece6f 100644 --- a/include/camera.hpp +++ b/include/camera.hpp @@ -5,15 +5,27 @@ class camera { public: - camera(point3 position, point3 target, double v_fov, double aspect_ratio); + camera( + point3 position, + point3 target, + double v_fov, + double aspect_ratio, + double aperture, + double focus_dist + ); ray get_ray(double u, double v) const; point3 position; + double lens_radius; vec3 horizontal; vec3 vertical; + vec3 forward; + vec3 right; + vec3 up; + point3 bottom_left_pixel; }; -- cgit v1.3