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.63 by greg, Sun Jul 29 21:56:16 2012 UTC vs.
Revision 2.64 by greg, Mon Jul 30 17:46:50 2012 UTC

# Line 280 | Line 280 | m_normal(                      /* color a ray that hit something normal *
280                  if (m->otype != MAT_METAL) {
281                          setcolor(nd.scolor, nd.rspec, nd.rspec, nd.rspec);
282                  } else if (fest > FTINY) {
283 <                        d = nd.rspec*(1. - fest);
283 >                        d = m->oargs.farg[3]*(1. - fest);
284                          for (i = 0; i < 3; i++)
285                                  nd.scolor[i] = fest + nd.mcolor[i]*d;
286                  } else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines