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.59 by greg, Thu May 21 05:54:54 2015 UTC vs.
Revision 2.61 by greg, Wed Sep 2 18:59:01 2015 UTC

# Line 108 | Line 108 | diraniso(              /* compute source contribution */
108                  scalecolor(ctmp, dtmp);
109                  addcolor(cval, ctmp);
110          }
111
112        /* PMAP: skip direct specular refl via ambient bounce if already
113         * accounted for in photon map */
114        if (ambRayInPmap(np->rp))
115                return;
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
# Line 276 | Line 274 | m_aniso(                       /* shade ray that hit something anisotropic
274  
275          getacoords(&nd);                        /* set up coordinates */
276  
277 <        /* PMAP: skip indirect specular via ambient bounce if already accounted
280 <         * for in photon map */
281 <        if (!ambRayInPmap(r) && nd.specfl & (SP_REFL|SP_TRAN))
277 >        if (nd.specfl & (SP_REFL|SP_TRAN))
278                  agaussamp(&nd);
279  
280          if (nd.rdiff > FTINY) {         /* ambient from this side */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines