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

Comparing ray/src/rt/raytrace.c (file contents):
Revision 2.74 by greg, Wed Dec 5 02:12:23 2018 UTC vs.
Revision 2.75 by greg, Wed Feb 13 01:00:31 2019 UTC

# Line 195 | Line 195 | raytrans(                      /* transmit ray as is */
195          rayorigin(&tr, TRANS, r, NULL);         /* always continue */
196          VCOPY(tr.rdir, r->rdir);
197          rayvalue(&tr);
198 +        copycolor(r->mcol, tr.mcol);
199          copycolor(r->rcol, tr.rcol);
200          r->rmt = r->rot + tr.rmt;
201          r->rxt = r->rot + tr.rxt;
# Line 207 | Line 208 | raytirrad(                     /* irradiance hack */
208          RAY     *r
209   )
210   {
211 <        if ((ofun[m->otype].flags & (T_M|T_X)) && m->otype != MAT_CLIP) {
211 >        if (ofun[m->otype].flags & (T_M|T_X) && m->otype != MAT_CLIP) {
212                  if (istransp(m->otype) || isBSDFproxy(m)) {
213                          raytrans(r);
214                          return(1);
# Line 367 | Line 368 | raymixture(            /* mix modifiers */
368          scalecolor(br.rcol, 1.0-coef);
369          copycolor(r->rcol, fr.rcol);
370          addcolor(r->rcol, br.rcol);
371 +        scalecolor(fr.mcol, coef);
372 +        scalecolor(br.mcol, 1.0-coef);
373 +        copycolor(r->mcol, fr.mcol);
374 +        addcolor(r->mcol, br.mcol);
375          mfore = bright(fr.mcol); mback = bright(br.mcol);
376          r->rmt = mfore > mback ? fr.rmt : br.rmt;
377          r->rxt = bright(fr.rcol)-mfore > bright(br.rcol)-mback ?

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines