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

Comparing ray/src/rt/m_mirror.c (file contents):
Revision 2.19 by greg, Mon Jun 6 16:22:46 2016 UTC vs.
Revision 2.21 by greg, Fri Apr 19 19:01:32 2019 UTC

# Line 98 | Line 98 | m_mirror(                      /* shade mirrored ray */
98          checknorm(nr.rdir);
99          rayvalue(&nr);
100          multcolor(nr.rcol, nr.rcoef);
101 +        copycolor(r->mcol, nr.rcol);
102          addcolor(r->rcol, nr.rcol);
103 +        r->rmt = r->rot;
104          if (rpure && r->ro != NULL && isflat(r->ro->otype))
105 <                r->rt = r->rot + nr.rt;
105 >                r->rmt += r->rot + raydistance(&nr);
106          return(1);
107   }
108  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines