star-camera

Camera models
git clone git://git.meso-star.fr/star-camera.git
Log | Files | Refs | README | LICENSE

commit 0d14b485a39df890972eefccc985b05e4041412b
parent 5ab5050f67bab87e8955aa91a59b3fd7412b9d5c
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 23 Jul 2021 16:38:46 +0200

Minor comment updates

Diffstat:
Msrc/scam_perspective.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/scam_perspective.c b/src/scam_perspective.c @@ -164,7 +164,7 @@ thin_lens_generate_ray dir[1] = sample->film[1]*2-1; dir[2] = 1; - /* Transform the computed direction in camera space */ + /* Transform the sampled direction in camera space */ dir[0] = dir[0] * cam->param.persp.aspect_ratio; dir[1] = dir[1]; dir[2] = dir[2] * cam->param.persp.rcp_tan_half_fov; @@ -173,9 +173,9 @@ thin_lens_generate_ray /* find the focus point by intersecting dir with the focus plane */ t = cam->param.persp.focal_distance / dir[2]; - focus_pt[0] = /*0 +*/ t*dir[0]; - focus_pt[1] = /*0 +*/ t*dir[1]; - focus_pt[2] = /*0 +*/ t*dir[2]; + focus_pt[0] = /* null ray origin + */ t*dir[0]; + focus_pt[1] = /* null ray origin + */ t*dir[1]; + focus_pt[2] = /* null ray origin + */ t*dir[2]; /* Uniformly sample a position onto the lens in camera space */ theta = 2 * PI * sample->lens[0];