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

Comparing ray/src/rt/aniso.c (file contents):
Revision 2.60 by greg, Tue May 26 13:21:07 2015 UTC vs.
Revision 2.61 by greg, Wed Sep 2 18:59:01 2015 UTC

# Line 14 | Line 14 | static const char RCSid[] = "$Id$";
14   #include  "source.h"
15   #include  "func.h"
16   #include  "random.h"
17 + #include  "pmapmat.h"
18  
19   #ifndef  MAXITER
20   #define  MAXITER        10              /* maximum # specular ray attempts */
# Line 108 | Line 109 | diraniso(              /* compute source contribution */
109                  addcolor(cval, ctmp);
110          }
111          
112 +        if (ambRayInPmap(np->rp))
113 +                return;         /* specular accounted for in photon map */
114 +
115          if (ldot > FTINY && np->specfl&SP_REFL) {
116                  /*
117                   *  Compute specular reflection coefficient using

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines