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.44 by greg, Tue Jun 17 21:49:57 2003 UTC vs.
Revision 2.45 by schorsch, Sun Jul 27 22:12:03 2003 UTC

# Line 87 | Line 87 | double  omega;                 /* light source size */
87  
88                                  /* Fresnel estimate */
89          ldiff = np->rdiff;
90 <        if (np->specfl & SP_PURE && (np->rspec > FTINY & ldiff > FTINY))
90 >        if (np->specfl & SP_PURE && (np->rspec > FTINY) & (ldiff > FTINY))
91                  ldiff *= 1. - FRESNE(fabs(ldot));
92  
93          if (ldot > FTINY && ldiff > FTINY) {
# Line 198 | Line 198 | register RAY  *r;
198          if ((nd.alpha2 *= nd.alpha2) <= FTINY)
199                  nd.specfl |= SP_PURE;
200  
201 <        if (hastexture = (DOT(r->pert,r->pert) > FTINY*FTINY)) {
201 >        if ( (hastexture = (DOT(r->pert,r->pert) > FTINY*FTINY)) ) {
202                  nd.pdot = raynormal(nd.pnorm, r);       /* perturb normal */
203          } else {
204                  VCOPY(nd.pnorm, r->ron);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines