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.57 by greg, Fri Sep 23 19:04:53 2005 UTC vs.
Revision 2.58 by schorsch, Wed Jun 7 17:52:04 2006 UTC

# Line 93 | Line 93 | rayorigin(             /* start new ray from old one */
93                                  colval(ro->cext,RED) : colval(ro->cext,GRN);
94                  if (colval(ro->cext,BLU) < re) re = colval(ro->cext,BLU);
95                  re *= ro->rot;
96 <                if (re > 0.1)
97 <                        if (re > 92.)
96 >                if (re > 0.1) {
97 >                        if (re > 92.) {
98                                  r->rweight = 0.0;
99 <                        else
99 >                        } else {
100                                  r->rweight *= exp(-re);
101 +                        }
102 +                }
103          }
104          rayclear(r);
105          if (r->rweight <= 0.0)                  /* check for expiration */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines