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.30 by greg, Tue Sep 26 15:05:32 1995 UTC vs.
Revision 2.31 by greg, Mon Nov 6 12:03:17 1995 UTC

# Line 290 | Line 290 | register RAY  *r;
290                  gaussamp(r, &nd);
291  
292          if (nd.rdiff > FTINY) {         /* ambient from this side */
293 <                ambient(ctmp, r);
293 >                ambient(ctmp, r, hastexture?nd.pnorm:r->ron);
294                  if (nd.specfl & SP_RBLT)
295                          scalecolor(ctmp, 1.0-nd.trans);
296                  else
# Line 300 | Line 300 | register RAY  *r;
300          }
301          if (nd.tdiff > FTINY) {         /* ambient from other side */
302                  flipsurface(r);
303 <                ambient(ctmp, r);
303 >                ambient(ctmp, r, hastexture?nd.pnorm:r->ron);
304                  if (nd.specfl & SP_TBLT)
305                          scalecolor(ctmp, nd.trans);
306                  else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines