# | Line 273 | Line 273 | m_normal( /* color a ray that hit something normal * | |
---|---|---|
273 | rayvalue(&lr); | |
274 | multcolor(lr.rcol, lr.rcoef); | |
275 | addcolor(r->rcol, lr.rcol); | |
276 | < | r->rxt = r->rot + raydistance(&lr); |
276 | > | if (nd.tspec >= 1.0-FTINY) { |
277 | > | /* completely transparent */ |
278 | > | multcolor(lr.mcol, lr.rcoef); |
279 | > | copycolor(r->mcol, lr.mcol); |
280 | > | r->rmt = r->rot + lr.rmt; |
281 | > | r->rxt = r->rot + lr.rxt; |
282 | > | } else |
283 | > | r->rxt = r->rot + raydistance(&lr); |
284 | } | |
285 | } | |
286 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |