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

Comparing ray/src/rt/m_mist.c (file contents):
Revision 2.18 by greg, Tue Jul 8 18:25:00 2014 UTC vs.
Revision 2.21 by greg, Wed Nov 15 18:02:53 2023 UTC

# Line 161 | Line 161 | m_mist(                /* process a ray entering or leaving some mis
161                  setcolor(mext, m->oargs.farg[0], m->oargs.farg[1],
162                                  m->oargs.farg[2]);
163                  raytexture(r, m->omod);                 /* get modifiers */
164 <                multcolor(mext, r->pcol);
164 >                multscolor(mext, r->pcol);
165          } else
166                  setcolor(mext, 0., 0., 0.);
167                                                  /* start transmitted ray */
# Line 217 | Line 217 | m_mist(                /* process a ray entering or leaving some mis
217                          p.gecc = seccg;
218          }
219          rayvalue(&p);                           /* calls rayparticipate() */
220 <        copycolor(r->rcol, p.rcol);             /* return value */
221 <        r->rt = r->rot + p.rt;
220 >        copyscolor(r->rcol, p.rcol);            /* return value */
221 >        copyscolor(r->mcol, p.mcol);
222 >        r->rmt = r->rot + p.rmt;
223 >        r->rxt = r->rot + p.rxt;
224          return(1);
225   memerr:
226          error(SYSTEM, "out of memory in m_mist");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines