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.31 by greg, Mon Nov 6 12:03:17 1995 UTC vs.
Revision 2.32 by greg, Wed Nov 22 09:27:55 1995 UTC

# Line 300 | Line 300 | register RAY  *r;
300          }
301          if (nd.tdiff > FTINY) {         /* ambient from other side */
302                  flipsurface(r);
303 <                ambient(ctmp, r, hastexture?nd.pnorm:r->ron);
303 >                if (hastexture) {
304 >                        FVECT  bnorm;
305 >                        bnorm[0] = -nd.pnorm[0];
306 >                        bnorm[1] = -nd.pnorm[1];
307 >                        bnorm[2] = -nd.pnorm[2];
308 >                        ambient(ctmp, r, bnorm);
309 >                } else
310 >                        ambient(ctmp, r, r->ron);
311                  if (nd.specfl & SP_TBLT)
312                          scalecolor(ctmp, nd.trans);
313                  else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines