aboutsummaryrefslogtreecommitdiffstats
path: root/include/camera.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2020-12-22 23:19:59 +0100
committerladevieq <ladevie.quentin@gmail.com>2020-12-22 23:19:59 +0100
commit3b567beadb6275adf4b60e1eca003e44014c3786 (patch)
tree7e5c65c19ddee300c01ad2ef698b66ebf9a4802e /include/camera.hpp
parent6b6ef77808585713ab1d04f03e970865b7e7ddb8 (diff)
Defocus blur & randow scene generation
Diffstat (limited to 'include/camera.hpp')
-rw-r--r--include/camera.hpp14
1 files changed, 13 insertions, 1 deletions
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;
};