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

Comparing ray/src/rt/normal.c (file contents):
Revision 2.52 by greg, Fri May 7 15:44:52 2010 UTC vs.
Revision 2.53 by greg, Sun Sep 26 15:51:15 2010 UTC

# Line 156 | Line 156 | dirnorm(               /* compute source contribution */
156                                                  /* roughness + source */
157                  dtmp = np->alpha2 + omega*(1.0/PI);
158                                                  /* gaussian */
159 <                 dtmp = exp((2.*DOT(np->prdir,ldir)-2.)/dtmp)/(PI*dtmp);
159 >                dtmp = exp((2.*DOT(np->prdir,ldir)-2.)/dtmp)/(PI*dtmp);
160                                                  /* worth using? */
161                  if (dtmp > FTINY) {
162                          copycolor(ctmp, np->mcolor);
# Line 299 | Line 299 | m_normal(                      /* color a ray that hit something normal *
299                  if (hastexture && DOT(nd.vrefl, r->ron) <= FTINY)
300                          for (i = 0; i < 3; i++)         /* safety measure */
301                                  nd.vrefl[i] = r->rdir[i] + 2.*r->rod*r->ron[i];
302 +                checknorm(nd.vrefl);
303          }
304                                                  /* reflected ray */
305          if ((nd.specfl&(SP_REFL|SP_PURE|SP_RBLT)) == (SP_REFL|SP_PURE)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines