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.39 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.40 by greg, Mon Mar 3 00:10:51 2003 UTC

# Line 182 | Line 182 | register RAY  *r;
182                          raytrans(r);
183                          return(1);
184                  }
185 +                raytexture(r, m->omod);
186                  flipsurface(r);                 /* reorient if backvis */
187 <        }
187 >        } else
188 >                raytexture(r, m->omod);
189          nd.mp = m;
190          nd.rp = r;
191                                                  /* get material color */
# Line 197 | Line 199 | register RAY  *r;
199                  nd.specfl |= SP_PURE;
200          if (r->ro != NULL && isflat(r->ro->otype))
201                  nd.specfl |= SP_FLAT;
202 <                                                /* get modifiers */
201 <        raytexture(r, m->omod);
202 >
203          if (hastexture = DOT(r->pert,r->pert) > FTINY*FTINY)
204                  nd.pdot = raynormal(nd.pnorm, r);       /* perturb normal */
205          else {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines