# | Line 101 | Line 101 | register RAY *r; | |
---|---|---|
101 | r->rox = NULL; | |
102 | r->rt = r->rot = FHUGE; | |
103 | r->pert[0] = r->pert[1] = r->pert[2] = 0.0; | |
104 | + | r->uv[0] = r->uv[1] = 0.0; |
105 | setcolor(r->pcol, 1.0, 1.0, 1.0); | |
106 | setcolor(r->rcol, 0.0, 0.0, 0.0); | |
107 | } | |
# | Line 173 | Line 174 | int mod; | |
174 | } | |
175 | ******/ | |
176 | /* hack for irradiance calculation */ | |
177 | < | if (do_irrad && !(r->crtype & ~(PRIMARY|TRANS))) { |
177 | > | if (do_irrad && !(r->crtype & ~(PRIMARY|TRANS)) && |
178 | > | (ofun[m->otype].flags & (T_M|T_X))) { |
179 | if (irr_ignore(m->otype)) { | |
180 | #if MAXLOOP | |
181 | depth--; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |