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

# Line 277 | Line 277 | m_aniso(                       /* shade ray that hit something anisotropic
277  
278          if (nd.rdiff > FTINY) {         /* ambient from this side */
279                  copycolor(ctmp, nd.mcolor);     /* modified by material color */
280 <                if (nd.specfl & SP_RBLT)
281 <                        scalecolor(ctmp, 1.0-nd.trans);
282 <                else
283 <                        scalecolor(ctmp, nd.rdiff);
280 >                scalecolor(ctmp, nd.rdiff);
281 >                if (nd.specfl & SP_RBLT)        /* add in specular as well? */
282 >                        addcolor(ctmp, nd.scolor);
283                  multambient(ctmp, r, nd.pnorm);
284                  addcolor(r->rcol, ctmp);        /* add to returned color */
285          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines