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

Comparing ray/src/hd/rholo2.c (file contents):
Revision 3.6 by gregl, Fri Dec 12 18:33:50 1997 UTC vs.
Revision 3.8 by gregl, Sat Dec 13 10:30:55 1997 UTC

# Line 34 | Line 34 | register PACKET        *p;
34                  p->ra[i].r[1][0] = sl[2] * 256.;
35                  p->ra[i].r[1][1] = sl[3] * 256.;
36                  d = hdray(ro, rd, hdlist[p->hd], gc, p->ra[i].r);
37 +                if (!vdef(OBSTRUCTIONS))
38 +                        d *= frandom();                 /* random offset */
39                  if (p->offset != NULL) {
40 <                        VSUM(ro, ro, rd, d);            /* exterior only */
40 >                        VSUM(ro, ro, rd, d);            /* advance ray */
41                          p->offset[i] = d;
42                  }
43                  VCOPY(rod, ro);
# Line 75 | Line 77 | done_rtrace()                  /* clean up and close rtrace calculati
77          wputs("closing rtrace process...\n");
78                                          /* flush beam queue */
79          done_packets(flush_queue());
80 +                                        /* sync holodeck */
81 +        hdsync(NULL, 1);
82                                          /* close rtrace */
83          if ((status = end_rtrace()))
84                  error(WARNING, "bad exit status from rtrace");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines