# | Line 290 | Line 290 | register RAY *r; | |
---|---|---|
290 | gaussamp(r, &nd); | |
291 | ||
292 | if (nd.rdiff > FTINY) { /* ambient from this side */ | |
293 | < | ambient(ctmp, r); |
293 | > | ambient(ctmp, r, hastexture?nd.pnorm:r->ron); |
294 | if (nd.specfl & SP_RBLT) | |
295 | scalecolor(ctmp, 1.0-nd.trans); | |
296 | else | |
# | Line 300 | Line 300 | register RAY *r; | |
300 | } | |
301 | if (nd.tdiff > FTINY) { /* ambient from other side */ | |
302 | flipsurface(r); | |
303 | < | ambient(ctmp, r); |
303 | > | ambient(ctmp, r, hastexture?nd.pnorm:r->ron); |
304 | if (nd.specfl & SP_TBLT) | |
305 | scalecolor(ctmp, nd.trans); | |
306 | else |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |