# | Line 306 | Line 306 | m_brdf( /* color a ray that hit a BRDTfunc material | |
---|---|---|
306 | multcolor(sr.rcol, sr.rcoef); | |
307 | copycolor(r->mcol, sr.rcol); | |
308 | addcolor(r->rcol, sr.rcol); | |
309 | + | r->rmt = r->rot; |
310 | if (r->ro != NULL && isflat(r->ro->otype) && | |
311 | !hastexture | (r->crtype & AMBIENT)) | |
312 | < | r->rmt = r->rot + raydistance(&sr); |
312 | > | r->rmt += raydistance(&sr); |
313 | } | |
314 | /* compute ambient */ | |
315 | if (hasrefl) { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |