# | Line 60 | Line 60 | register RAY *r; | |
---|---|---|
60 | ||
61 | if (r->rod < 0.0) /* reorient if necessary */ | |
62 | flipsurface(r); | |
63 | + | r->rt = r->rot; /* default ray length */ |
64 | /* get modifiers */ | |
65 | raytexture(r, m->omod); | |
66 | pdot = raynormal(pnorm, r); | |
# | Line 86 | Line 87 | register RAY *r; | |
87 | multcolor(p.rcol, r->pcol); /* modify */ | |
88 | multcolor(p.rcol, trans); | |
89 | addcolor(r->rcol, p.rcol); | |
90 | + | if (bright(p.rcol) > .5) |
91 | + | r->rt = r->rot + p.rt; |
92 | } | |
93 | + | |
94 | if (r->crtype & SHADOW) /* skip reflected ray */ | |
95 | return; | |
96 | /* compute reflectance */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |