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.66 by greg, Sat Jan 25 18:27:39 2014 UTC vs.
Revision 2.67 by greg, Sat May 10 17:43:01 2014 UTC

# Line 239 | Line 239 | m_normal(                      /* color a ray that hit something normal *
239                          if (!(nd.specfl & SP_PURE) &&
240                                          specthresh >= nd.tspec-FTINY)
241                                  nd.specfl |= SP_TBLT;
242 <                        if (!hastexture || r->crtype & SHADOW) {
242 >                        if (!hastexture || r->crtype & (SHADOW|AMBIENT)) {
243                                  VCOPY(nd.prdir, r->rdir);
244                                  transtest = 2;
245                          } else {
# Line 306 | Line 306 | m_normal(                      /* color a ray that hit something normal *
306                          rayvalue(&lr);
307                          multcolor(lr.rcol, lr.rcoef);
308                          addcolor(r->rcol, lr.rcol);
309 <                        if (!hastexture && nd.specfl & SP_FLAT) {
309 >                        if (nd.specfl & SP_FLAT &&
310 >                                        !hastexture | (r->crtype & AMBIENT)) {
311                                  mirtest = 2.*bright(lr.rcol);
312                                  mirdist = r->rot + lr.rt;
313                          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines