Specify camera FOV instead of viewport height

This commit is contained in:
cdo committed 2025-09-23 15:36:08 +01:00
1 parent 90240ee5ad
commit bb6c1683b2
3 files changed
+13 -5

No files matched your search

+1 -1
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(