diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-09 20:42:24 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-09 20:43:09 +0100 |
| commit | 2db0d27e7f1744443958717c19b732eed57455f2 (patch) | |
| tree | 839b8ea513c8c239f015071ab083bd50f03854a5 /include/camera.hpp | |
| parent | 4379b46b46563c5a709df8d567ef75affc3fd31c (diff) | |
Replace old classes with compute shader structs
Diffstat (limited to 'include/camera.hpp')
| -rw-r--r-- | include/camera.hpp | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/include/camera.hpp b/include/camera.hpp index 858833b..43ed755 100644 --- a/include/camera.hpp +++ b/include/camera.hpp @@ -1,35 +1,31 @@ #ifndef __CAMERA_HPP_ #define __CAMERA_HPP_ -#include "ray.hpp" +#include "vec3.hpp" class camera { public: camera( point3 position, point3 target, - double v_fov, - double aspect_ratio, - double aperture, - double focus_dist + float v_fov, + float aspect_ratio, + float aperture, + float focus_dist ); - ray get_ray(double u, double v) const; - point3 position; - float lens_radius; - float viewport_width; - float viewport_height; + vec3 right; + vec3 up; vec3 horizontal; vec3 vertical; - vec3 forward; - vec3 right; - vec3 up; + vec3 first_pixel; - point3 bottom_left_pixel; + float lens_radius; + float padding[3]; }; #endif // !__CAMERA_HPP_ |
