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

Comparing ray/src/rt/dielectric.c (file contents):
Revision 1.2 by greg, Wed Jun 7 08:38:31 1989 UTC vs.
Revision 1.3 by greg, Tue Mar 27 11:39:58 1990 UTC

# Line 135 | Line 135 | register RAY  *r;
135                                  multcolor(mcolor, r->pcol);     /* modify */
136                                  scalecolor(p.rcol, trans);
137                                  addcolor(r->rcol, p.rcol);
138 +                                r->rt = r->rot + p.rt;
139                          }
140                  }
141          }
# Line 150 | Line 151 | register RAY  *r;
151  
152                  scalecolor(p.rcol, refl);       /* color contribution */
153                  addcolor(r->rcol, p.rcol);
154 +                if (refl > trans)
155 +                        r->rt = r->rot + p.rt;
156          }
157  
158          multcolor(r->rcol, mcolor);             /* multiply by transmittance */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines