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

Comparing ray/src/rt/raytrace.c (file contents):
Revision 1.21 by greg, Thu Jun 20 13:29:32 1991 UTC vs.
Revision 1.23 by greg, Wed Oct 23 13:43:45 1991 UTC

# Line 26 | Line 26 | extern int  do_irrad;                  /* compute irradiance? */
26   long  raynum = 0L;                      /* next unique ray number */
27   long  nrays = 0L;                       /* number of calls to localhit */
28  
29 < static double  Lambfa[5] = {PI, PI, PI, 0.0, 0.0};
29 > static FLOAT  Lambfa[5] = {PI, PI, PI, 0.0, 0.0};
30   OBJREC  Lamb = {
31          OVOID, MAT_PLASTIC, "Lambertian",
32          {0, 5, NULL, Lambfa}, NULL, -1,
# Line 64 | Line 64 | double  rw;
64                  r->crtype = ro->crtype | (r->rtype = rt);
65                  VCOPY(r->rorg, ro->rop);
66          }
67 +        rayclear(r);
68 +        return(r->rlvl <= maxdepth && r->rweight >= minweight ? 0 : -1);
69 + }
70 +
71 +
72 + rayclear(r)                     /* clear a ray for (re)evaluation */
73 + register RAY  *r;
74 + {
75          r->rno = raynum++;
76          r->newcset = r->clipset;
77          r->ro = NULL;
# Line 72 | Line 80 | double  rw;
80          setcolor(r->pcol, 1.0, 1.0, 1.0);
81          setcolor(r->rcol, 0.0, 0.0, 0.0);
82          r->rt = 0.0;
75        return(r->rlvl <= maxdepth && r->rweight >= minweight ? 0 : -1);
83   }
84  
85  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines