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

Comparing ray/src/rt/rcontrib.c (file contents):
Revision 2.14 by greg, Wed Jun 27 15:32:58 2012 UTC vs.
Revision 2.16 by greg, Tue Aug 14 22:25:12 2012 UTC

# Line 255 | Line 255 | eval_irrad(FVECT org, FVECT dir)
255          thisray.rdir[2] = -dir[2];
256          thisray.rmax = 0.0;
257          rayorigin(&thisray, PRIMARY, NULL, NULL);
258 <        thisray.rot = 1e-5;             /* pretend we hit surface */
258 >                                        /* pretend we hit surface */
259 >        thisray.rt = thisray.rot = 1e-5;
260          thisray.rod = 1.0;
261 +        VCOPY(thisray.ron, dir);
262          VSUM(thisray.rop, org, dir, 1e-4);
263          samplendx++;                    /* compute result */
264          (*ofun[Lamb.otype].funp)(&Lamb, &thisray);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines