# | Line 300 | Line 300 | register RAY *r; | |
---|---|---|
300 | } | |
301 | if (nd.tdiff > FTINY) { /* ambient from other side */ | |
302 | flipsurface(r); | |
303 | < | ambient(ctmp, r, hastexture?nd.pnorm:r->ron); |
303 | > | if (hastexture) { |
304 | > | FVECT bnorm; |
305 | > | bnorm[0] = -nd.pnorm[0]; |
306 | > | bnorm[1] = -nd.pnorm[1]; |
307 | > | bnorm[2] = -nd.pnorm[2]; |
308 | > | ambient(ctmp, r, bnorm); |
309 | > | } else |
310 | > | ambient(ctmp, r, r->ron); |
311 | if (nd.specfl & SP_TBLT) | |
312 | scalecolor(ctmp, nd.trans); | |
313 | else |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |