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 1.9 by greg, Wed May 8 08:27:48 1991 UTC vs.
Revision 1.11 by greg, Thu Jun 13 13:58:18 1991 UTC

# Line 155 | Line 155 | register RAY  *r;
155          raytexture(r, m->omod);
156          nd.pdot = raynormal(nd.pnorm, r);       /* perturb normal */
157          multcolor(nd.mcolor, r->pcol);          /* modify material color */
158        r->rt = r->rot;                         /* default ray length */
158          transtest = 0;
159                                                  /* get specular component */
160          nd.rspec = m->oargs.farg[3];
# Line 202 | Line 201 | register RAY  *r;
201                                          lr.rdir[i] = r->rdir[i] -
202                                                          .75*r->pert[i];
203                                  normalize(lr.rdir);
204 <                        } else
204 >                        } else {
205 >                                VCOPY(lr.rdir, r->rdir);
206                                  transtest = 2;
207 +                        }
208                          rayvalue(&lr);
209                          scalecolor(lr.rcol, nd.tspec);
210                          multcolor(lr.rcol, nd.mcolor);  /* modified by color */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines