# | Line 284 | Line 284 | m_brdf( /* color a ray that hit a BRDTfunc material | |
---|---|---|
284 | rayvalue(&sr); | |
285 | multcolor(sr.rcol, sr.rcoef); | |
286 | addcolor(r->rcol, sr.rcol); | |
287 | < | if (!hastexture || r->crtype & (SHADOW|AMBIENT)) |
287 | > | if ((!hastexture || r->crtype & (SHADOW|AMBIENT)) && |
288 | > | nd.tspec > bright(nd.tdiff) + bright(nd.rdiff)) |
289 | r->rxt = r->rot + raydistance(&sr); | |
290 | } | |
291 | if (r->crtype & SHADOW) /* the rest is shadow */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |