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; |
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); |
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 ? |