Specify camera FOV instead of viewport height

This commit is contained in:
Camden Dixie O'Brien
2025-09-23 15:35:26 +01:00
parent d47e7d7d9d
commit 37d9b9e823
3 changed files with 13 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ typedef struct {
} camera_t;
camera_t camera_init(
vec3_t pos, double focal_len, double viewport_height, uint32_t img_width,
vec3_t pos, double focal_len, double fov, uint32_t img_width,
uint32_t img_height, unsigned samples_per_pixel);
void camera_render(