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.29 by greg, Fri Sep 15 15:47:32 1995 UTC vs.
Revision 2.30 by greg, Mon Nov 6 12:03:20 1995 UTC

# Line 272 | Line 272 | register RAY  *r;
272                  agaussamp(r, &nd);
273  
274          if (nd.rdiff > FTINY) {         /* ambient from this side */
275 <                ambient(ctmp, r);
275 >                ambient(ctmp, r, nd.pnorm);
276                  if (nd.specfl & SP_RBLT)
277                          scalecolor(ctmp, 1.0-nd.trans);
278                  else
# Line 282 | Line 282 | register RAY  *r;
282          }
283          if (nd.tdiff > FTINY) {         /* ambient from other side */
284                  flipsurface(r);
285 <                ambient(ctmp, r);
285 >                ambient(ctmp, r, nd.pnorm);
286                  if (nd.specfl & SP_TBLT)
287                          scalecolor(ctmp, nd.trans);
288                  else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines