Add camera aperture / depth-of-field
This commit is contained in:
@@ -8,11 +8,13 @@
|
||||
typedef struct {
|
||||
vec3_t pos;
|
||||
vec3_t pix_origin, x_step, y_step;
|
||||
vec3_t u_hat, v_hat;
|
||||
uint32_t img_width, img_height;
|
||||
double aperture;
|
||||
} camera_t;
|
||||
|
||||
camera_t camera_init(
|
||||
vec3_t pos, vec3_t target, double fov, uint32_t img_width,
|
||||
uint32_t img_height);
|
||||
uint32_t img_height, double aperture, double focal_len);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user