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 2.20 by greg, Tue Apr 19 01:15:06 2005 UTC vs.
Revision 2.21 by greg, Sun Sep 26 15:51:15 2010 UTC

# Line 180 | Line 180 | m_dielectric(  /* color a ray which hit a dielectric in
180                                          p.rdir[i] = nratio*r->rdir[i] +
181                                                          d1*r->ron[i];
182                                  normalize(p.rdir);      /* not exact */
183 <                        }
183 >                        } else
184 >                                checknorm(p.rdir);
185   #ifdef  DISPERSE
186                          if (m->otype != MAT_DIELECTRIC
187                                          || r->rod > 0.0
# Line 218 | Line 219 | m_dielectric(  /* color a ray which hit a dielectric in
219                  if (hastexture && DOT(p.rdir,r->ron)*hastexture <= FTINY)
220                          for (i = 0; i < 3; i++)         /* ignore texture */
221                                  p.rdir[i] = r->rdir[i] + 2.0*r->rod*r->ron[i];
222 <
222 >                checknorm(p.rdir);
223                  rayvalue(&p);                   /* reflected ray value */
224  
225                  multcolor(p.rcol, p.rcoef);     /* color contribution */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines