aboutsummaryrefslogtreecommitdiffstats
path: root/include/camera.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/camera.hpp')
-rw-r--r--include/camera.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/camera.hpp b/include/camera.hpp
index 82f7155..0b3d20e 100644
--- a/include/camera.hpp
+++ b/include/camera.hpp
@@ -1,16 +1,15 @@
#ifndef __CAMERA_HPP_
#define __CAMERA_HPP_
-#include "rt.hpp"
+#include "ray.hpp"
class camera {
public:
- camera(point3 position, double aspect_ratio, double focal_length);
+ camera(point3 position, point3 target, double v_fov, double aspect_ratio);
ray get_ray(double u, double v) const;
point3 position;
- double focal_length;
vec3 horizontal;
vec3 vertical;