Allow camera position and target position to vary

This commit is contained in:
cdo committed 2025-09-23 15:36:08 +01:00
1 parent 75159e7223
commit c32c903d18
3 files changed
+32 -25

No files matched your search

+2 -2
View File
@@ -15,8 +15,8 @@ typedef struct {
} camera_t;
camera_t camera_init(
vec3_t pos, double fov, uint32_t img_width, uint32_t img_height,
unsigned samples_per_pixel);
vec3_t pos, vec3_t target, double fov, uint32_t img_width,
uint32_t img_height, unsigned samples_per_pixel);
void camera_render(
const camera_t *camera, const obj_t *scene, unsigned scene_count,