diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-20 22:08:03 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-20 22:08:03 +0100 |
| commit | 2b1f81ba329b17a18cdd75604625076ee614f5ef (patch) | |
| tree | eb5501d6b6261e6e7745595a288b3a19fcb53aba /include | |
| parent | 293ba47eeb804e9cb0f392c0411fcce56c37bfc9 (diff) | |
Update fov on window resize
Diffstat (limited to 'include')
| -rw-r--r-- | include/camera.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
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_ |
