| 199 |
|
} |
| 200 |
|
|
| 201 |
|
|
| 202 |
– |
/* Macro for test to see if BSDF material uses proxy */ |
| 203 |
– |
#define isBSDFproxy(m) ((m)->otype == MAT_BSDF && (m)->oargs.nsargs && \ |
| 204 |
– |
strcmp((m)->oargs.sarg[0], "0")) |
| 205 |
– |
|
| 206 |
– |
|
| 202 |
|
int |
| 203 |
|
rayshade( /* shade ray r with material mod */ |
| 204 |
|
RAY *r, |
| 219 |
|
/* hack for irradiance calculation */ |
| 220 |
|
if (do_irrad && !(r->crtype & ~(PRIMARY|TRANS)) && |
| 221 |
|
(ofun[m->otype].flags & (T_M|T_X)) && |
| 222 |
< |
m->otype != MAT_CLIP && |
| 223 |
< |
!isBSDFproxy(m)) { |
| 229 |
< |
if (irr_ignore(m->otype)) { |
| 222 |
> |
m->otype != MAT_CLIP) { |
| 223 |
> |
if (istransp(m->otype) || isBSDFproxy(m)) { |
| 224 |
|
raytrans(r); |
| 225 |
|
return(1); |
| 226 |
|
} |