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.18 by greg, Fri May 15 13:07:55 1992 UTC vs.
Revision 2.19 by greg, Sat May 16 08:37:06 1992 UTC

# Line 135 | Line 135 | double  omega;                 /* light source size */
135                   *  is always modified by material color.
136                   */
137                                                  /* roughness + source */
138 <                dtmp = np->alpha2/4.0 + omega/PI;
138 >                dtmp = np->alpha2 + omega/PI;
139                                                  /* gaussian */
140                  dtmp = exp((2.*DOT(np->prdir,ldir)-2.)/dtmp)/(4.*PI*dtmp);
141                                                  /* worth using? */
# Line 240 | Line 240 | register RAY  *r;
240                                  transtest = 2;
241                          } else {
242                                  for (i = 0; i < 3; i++)         /* perturb */
243 <                                        nd.prdir[i] = r->rdir[i] -
244 <                                                        0.5*r->pert[i];
243 >                                        nd.prdir[i] = r->rdir[i] - r->pert[i];
244                                  if (DOT(nd.prdir, r->ron) < -FTINY)
245                                          normalize(nd.prdir);    /* OK */
246                                  else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines