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 2.28 by greg, Fri Mar 7 16:58:54 1997 UTC vs.
Revision 2.30 by gwlarson, Wed Apr 29 09:50:41 1998 UTC

# Line 98 | Line 98 | register RAY  *r;
98          r->newcset = r->clipset;
99          r->robj = OVOID;
100          r->ro = NULL;
101 <        r->rot = FHUGE;
101 >        r->rt = r->rot = FHUGE;
102          r->pert[0] = r->pert[1] = r->pert[2] = 0.0;
103          setcolor(r->pcol, 1.0, 1.0, 1.0);
104          setcolor(r->rcol, 0.0, 0.0, 0.0);
105        r->rt = 0.0;
105   }
106  
107  
# Line 270 | Line 269 | double  coef;
269                  backmat = rayshade(&br, back);
270                                          /* check for transparency */
271          if (backmat ^ foremat)
272 <                if (backmat)
272 >                if (backmat && coef > FTINY)
273                          raytrans(&fr);
274 <                else
274 >                else if (foremat && coef < 1.0-FTINY)
275                          raytrans(&br);
276                                          /* mix perturbations */
277          for (i = 0; i < 3; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines