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 2.38 by greg, Wed Feb 13 02:38:26 2019 UTC vs.
Revision 2.39 by greg, Fri Apr 19 19:01:32 2019 UTC

# Line 306 | Line 306 | m_brdf(                        /* color a ray that hit a BRDTfunc material
306                  multcolor(sr.rcol, sr.rcoef);
307                  copycolor(r->mcol, sr.rcol);
308                  addcolor(r->rcol, sr.rcol);
309 +                r->rmt = r->rot;
310                  if (r->ro != NULL && isflat(r->ro->otype) &&
311                                  !hastexture | (r->crtype & AMBIENT))
312 <                        r->rmt = r->rot + raydistance(&sr);
312 >                        r->rmt += raydistance(&sr);
313          }
314                                                  /* compute ambient */
315          if (hasrefl) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines