ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/m_brdf.c
(Generate patch)

Comparing ray/src/rt/m_brdf.c (file contents):
Revision 1.7 by greg, Wed May 8 08:27:50 1991 UTC vs.
Revision 1.9 by greg, Thu Jun 13 13:58:16 1991 UTC

# Line 237 | Line 237 | register RAY  *r;
237          raytexture(r, m->omod);
238          nd.pdot = raynormal(nd.pnorm, r);       /* perturb normal */
239          multcolor(nd.mcolor, r->pcol);          /* modify material color */
240        r->rt = r->rot;                         /* default ray length */
240          transtest = 0;
241                                                  /* load auxiliary files */
242          if (m->otype == MAT_PDATA || m->otype == MAT_MDATA
# Line 286 | Line 285 | register RAY  *r;
285                                          sr.rdir[i] = r->rdir[i] -
286                                                          .75*r->pert[i];
287                                  normalize(sr.rdir);
288 <                        } else
288 >                        } else {
289 >                                VCOPY(sr.rdir, r->rdir);
290                                  transtest = 2;
291 +                        }
292                          rayvalue(&sr);
293                          multcolor(sr.rcol, ctmp);
294                          addcolor(r->rcol, sr.rcol);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines