# | Line 86 | Line 86 | register RAY *r; | |
---|---|---|
86 | multcolor(p.rcol, r->pcol); /* modify */ | |
87 | multcolor(p.rcol, trans); | |
88 | addcolor(r->rcol, p.rcol); | |
89 | + | r->rt = r->rot + p.rt; |
90 | } | |
91 | + | |
92 | if (r->crtype & SHADOW) /* skip reflected ray */ | |
93 | return; | |
94 | /* compute reflectance */ | |
# | Line 102 | Line 104 | register RAY *r; | |
104 | rayvalue(&p); | |
105 | multcolor(p.rcol, refl); | |
106 | addcolor(r->rcol, p.rcol); | |
107 | + | if (bright(refl) > bright(trans)) |
108 | + | r->rt = r->rot + p.rt; |
109 | } | |
110 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |