# | Line 135 | Line 135 | register RAY *r; | |
---|---|---|
135 | multcolor(mcolor, r->pcol); /* modify */ | |
136 | scalecolor(p.rcol, trans); | |
137 | addcolor(r->rcol, p.rcol); | |
138 | + | r->rt = r->rot + p.rt; |
139 | } | |
140 | } | |
141 | } | |
# | Line 150 | Line 151 | register RAY *r; | |
151 | ||
152 | scalecolor(p.rcol, refl); /* color contribution */ | |
153 | addcolor(r->rcol, p.rcol); | |
154 | + | if (refl > trans) |
155 | + | r->rt = r->rot + p.rt; |
156 | } | |
157 | ||
158 | multcolor(r->rcol, mcolor); /* multiply by transmittance */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |