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

Comparing ray/src/rt/m_mirror.c (file contents):
Revision 2.16 by greg, Sat May 10 17:43:01 2014 UTC vs.
Revision 2.17 by greg, Tue Feb 24 19:39:26 2015 UTC

# Line 11 | Line 11 | static const char      RCSid[] = "$Id$";
11   #include  "otypes.h"
12   #include  "rtotypes.h"
13   #include  "source.h"
14 + #include  "pmapmat.h"
15  
16   /*
17   * The real arguments for MAT_MIRROR are simply:
# Line 39 | Line 40 | m_mirror(                      /* shade mirrored ray */
40          RAY  nr;
41          int  rpure = 1;
42          int  i;
43 +        
44 +        /* PMAP: skip specular refl via ambient bounce if already accounted for
45 +         * in photon map */
46 +        if (ambRayInPmap(r))
47 +                return(1);
48                                          /* check arguments */
49          if (m->oargs.nfargs != 3 || m->oargs.nsargs > 1)
50                  objerror(m, USER, "bad number of arguments");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines