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.38 by greg, Wed Mar 12 04:59:05 2003 UTC vs.
Revision 2.40 by greg, Thu Aug 28 03:22:16 2003 UTC

# Line 9 | Line 9 | static const char RCSid[] = "$Id$";
9  
10   #include  "ray.h"
11  
12 + #include  "ambient.h"
13 +
14   #include  "otypes.h"
15  
16   #include  "func.h"
# Line 265 | Line 267 | register RAY  *r;
267                                                  /* diffuse reflection */
268          nd.rdiff = 1.0 - nd.trans - nd.rspec;
269  
270 <        if (r->ro != NULL && isflat(r->ro->otype) &&
269 <                        DOT(r->pert,r->pert) <= FTINY*FTINY)
270 >        if (r->ro != NULL && isflat(r->ro->otype))
271                  nd.specfl |= SP_FLAT;
272  
273          getacoords(r, &nd);                     /* set up coordinates */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines