158 |
|
register int i; |
159 |
|
/* easy shadow test */ |
160 |
|
if (r->crtype & SHADOW && m->otype != MAT_TRANS) |
161 |
< |
return; |
161 |
> |
return(1); |
162 |
|
|
163 |
|
if (m->oargs.nfargs != (m->otype == MAT_TRANS ? 7 : 5)) |
164 |
|
objerror(m, USER, "bad number of arguments"); |
255 |
|
transtest = 0; |
256 |
|
|
257 |
|
if (r->crtype & SHADOW) /* the rest is shadow */ |
258 |
< |
return; |
258 |
> |
return(1); |
259 |
|
/* diffuse reflection */ |
260 |
|
nd.rdiff = 1.0 - nd.trans - nd.rspec; |
261 |
|
|
262 |
|
if (nd.specfl & SP_PURE && nd.rdiff <= FTINY && nd.tdiff <= FTINY) |
263 |
< |
return; /* 100% pure specular */ |
263 |
> |
return(1); /* 100% pure specular */ |
264 |
|
|
265 |
|
if (r->ro != NULL && (r->ro->otype == OBJ_FACE || |
266 |
|
r->ro->otype == OBJ_RING)) |
294 |
|
/* check distance */ |
295 |
|
if (transtest > bright(r->rcol)) |
296 |
|
r->rt = transdist; |
297 |
+ |
|
298 |
+ |
return(1); |
299 |
|
} |
300 |
|
|
301 |
|
|