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.58 by greg, Tue Oct 12 19:01:14 2010 UTC vs.
Revision 2.59 by greg, Wed Oct 13 15:29:02 2010 UTC

# Line 432 | Line 432 | gaussamp(                      /* sample Gaussian specular */
432                                  continue;
433                          checknorm(sr.rdir);
434                          if (nstarget > 1) {     /* W-G-M-D adjustment */
435 <                                rayclear(&sr);
435 >                                if (nstaken) rayclear(&sr);
436                                  rayvalue(&sr);
437                                  d = 2./(1. + r->rod/d);
438                                  scalecolor(sr.rcol, d);
# Line 493 | Line 493 | gaussamp(                      /* sample Gaussian specular */
493                          if (DOT(sr.rdir, r->ron) >= -FTINY)
494                                  continue;
495                          normalize(sr.rdir);     /* OK, normalize */
496 <                        if (nstarget > 1)       /* multi-sampling */
496 >                        if (nstaken)            /* multi-sampling */
497                                  rayclear(&sr);
498                          rayvalue(&sr);
499                          multcolor(sr.rcol, sr.rcoef);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines