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.30 by greg, Mon Nov 6 12:03:20 1995 UTC vs.
Revision 2.31 by greg, Wed Nov 22 09:27:51 1995 UTC

# Line 281 | Line 281 | register RAY  *r;
281                  addcolor(r->rcol, ctmp);        /* add to returned color */
282          }
283          if (nd.tdiff > FTINY) {         /* ambient from other side */
284 +                FVECT  bnorm;
285 +
286                  flipsurface(r);
287 <                ambient(ctmp, r, nd.pnorm);
287 >                bnorm[0] = -nd.pnorm[0];
288 >                bnorm[1] = -nd.pnorm[1];
289 >                bnorm[2] = -nd.pnorm[2];
290 >                ambient(ctmp, r, bnorm);
291                  if (nd.specfl & SP_TBLT)
292                          scalecolor(ctmp, nd.trans);
293                  else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines