ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rtrace.c
(Generate patch)

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.100 by greg, Wed Jan 27 00:00:05 2021 UTC vs.
Revision 2.101 by greg, Tue Feb 16 22:06:00 2021 UTC

# Line 420 | Line 420 | rtcompute(                     /* compute and print ray value(s) */
420   )
421   {
422                                          /* set up ray */
423        rayorigin(&thisray, PRIMARY, NULL, NULL);
423          if (imm_irrad) {
424                  VSUM(thisray.rorg, org, dir, 1.1e-4);
425                  thisray.rdir[0] = -dir[0];
426                  thisray.rdir[1] = -dir[1];
427                  thisray.rdir[2] = -dir[2];
428                  thisray.rmax = 0.0;
430                thisray.revf = rayirrad;
429          } else {
430                  VCOPY(thisray.rorg, org);
431                  VCOPY(thisray.rdir, dir);
432                  thisray.rmax = dmax;
435                if (castonly)
436                        thisray.revf = raycast;
433          }
434 +        rayorigin(&thisray, PRIMARY, NULL, NULL);
435 +        if (imm_irrad)
436 +                thisray.revf = rayirrad;
437 +        else if (castonly)
438 +                thisray.revf = raycast;
439          if (ray_pnprocs > 1) {          /* multiprocessing FIFO? */
440                  if (ray_fifo_in(&thisray) < 0)
441                          error(USER, "lost children");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines