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.60 by greg, Fri Feb 18 00:40:25 2011 UTC vs.
Revision 2.61 by greg, Wed Oct 26 03:44:56 2011 UTC

# Line 325 | Line 325 | m_normal(                      /* color a ray that hit something normal *
325  
326          if (nd.rdiff > FTINY) {         /* ambient from this side */
327                  copycolor(ctmp, nd.mcolor);     /* modified by material color */
328 <                if (nd.specfl & SP_RBLT)
329 <                        scalecolor(ctmp, 1.0-nd.trans);
330 <                else
331 <                        scalecolor(ctmp, nd.rdiff);
328 >                scalecolor(ctmp, nd.rdiff);
329 >                if (nd.specfl & SP_RBLT)        /* add in specular as well? */
330 >                        addcolor(ctmp, nd.scolor);
331                  multambient(ctmp, r, hastexture ? nd.pnorm : r->ron);
332                  addcolor(r->rcol, ctmp);        /* add to returned color */
333          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines