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.1 by greg, Thu Feb 2 10:41:21 1989 UTC vs.
Revision 1.3 by greg, Tue Mar 27 11:39:58 1990 UTC

# Line 92 | Line 92 | register RAY  *r;
92                  else
93                          setcolor(mcolor, 1.0, 1.0, 1.0);
94          }
95 <        mabsorp = intens(mcolor);
95 >        mabsorp = bright(mcolor);
96  
97          d2 = 1.0 - nratio*nratio*(1.0 - cos1*cos1);     /* compute cos theta2 */
98  
# 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 */
# Line 253 | Line 256 | double  tr;
256                                                  /* trace source ray */
257                  normalize(sray.rdir);
258                  rayvalue(&sray);
259 <                if (intens(sray.rcol) <= FTINY) /* missed it */
259 >                if (bright(sray.rcol) <= FTINY) /* missed it */
260                          continue;
261                  
262                  /*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines