| 61 |
|
r->rweight = rw; |
| 62 |
|
r->crtype = r->rtype = rt; |
| 63 |
|
r->rsrc = -1; |
| 64 |
– |
#ifdef SSKIPOPT |
| 65 |
– |
r->scorr = 1.f; |
| 66 |
– |
#endif |
| 64 |
|
r->clipset = NULL; |
| 65 |
|
r->revf = raytrace; |
| 66 |
|
copycolor(r->cext, cextinction); |
| 74 |
|
} |
| 75 |
|
r->rlvl = ro->rlvl; |
| 76 |
|
r->rsrc = ro->rsrc; |
| 80 |
– |
#ifdef SSKIPOPT |
| 81 |
– |
r->scorr = ro->scorr; |
| 82 |
– |
#endif |
| 77 |
|
if (rt & RAYREFL) { |
| 78 |
|
r->rlvl++; |
| 79 |
|
if (r->rsrc >= 0) /* malfunctioning material? */ |
| 214 |
|
) |
| 215 |
|
{ |
| 216 |
|
if (m->otype != MAT_CLIP && ismaterial(m->otype)) { |
| 217 |
< |
if (istransp(m->otype) || isBSDFproxy(m)) { |
| 217 |
> |
if (istransp(m) || isBSDFproxy(m)) { |
| 218 |
|
raytrans(r); |
| 219 |
|
return(1); |
| 220 |
|
} |
| 544 |
|
return(1); /* old has material, new does not */ |
| 545 |
|
} else if (mray == NULL) { |
| 546 |
|
return(0); /* new has material, old does not */ |
| 547 |
< |
} else if (istransp(mnew->otype)) { |
| 548 |
< |
if (!istransp(mray->otype)) |
| 547 |
> |
} else if (istransp(mnew)) { |
| 548 |
> |
if (!istransp(mray)) |
| 549 |
|
return(1); /* new is transparent, old is not */ |
| 550 |
< |
} else if (istransp(mray->otype)) { |
| 550 |
> |
} else if (istransp(mray)) { |
| 551 |
|
return(0); /* old is transparent, new is not */ |
| 552 |
|
} |
| 553 |
|
if (rod <= 0) { /* check which side we hit */ |