# | Line 188 | Line 188 | register int sn; /* source number */ | |
---|---|---|
188 | else if (srcval[sn].so->otype == OBJ_RING) | |
189 | norm = getcone(srcval[sn].so,0)->ad; | |
190 | ||
191 | < | if (norm != NULL && (ddot = -DOT(sr->rdir, norm)) <= 0.0) |
191 | > | if (norm != NULL && (ddot = -DOT(sr->rdir, norm)) <= FTINY) |
192 | return(0.0); /* behind surface! */ | |
193 | } | |
194 | if (dstrsrc > FTINY) { | |
# | Line 267 | Line 267 | register RAY *r; | |
267 | for (i = 0; i < 3; i++) | |
268 | r->ron[i] = -r->rdir[i]; | |
269 | r->rod = 1.0; | |
270 | + | r->rofs = 1.0; setident4(r->rofx); |
271 | + | r->robs = 1.0; setident4(r->robx); |
272 | return(1); | |
273 | } | |
274 | return(0); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |