239 |
|
if (!(nd.specfl & SP_PURE) && |
240 |
|
specthresh >= nd.tspec-FTINY) |
241 |
|
nd.specfl |= SP_TBLT; |
242 |
< |
if (!hastexture || r->crtype & SHADOW) { |
242 |
> |
if (!hastexture || r->crtype & (SHADOW|AMBIENT)) { |
243 |
|
VCOPY(nd.prdir, r->rdir); |
244 |
|
transtest = 2; |
245 |
|
} else { |
306 |
|
rayvalue(&lr); |
307 |
|
multcolor(lr.rcol, lr.rcoef); |
308 |
|
addcolor(r->rcol, lr.rcol); |
309 |
< |
if (!hastexture && nd.specfl & SP_FLAT) { |
309 |
> |
if (nd.specfl & SP_FLAT && |
310 |
> |
!hastexture | (r->crtype & AMBIENT)) { |
311 |
|
mirtest = 2.*bright(lr.rcol); |
312 |
|
mirdist = r->rot + lr.rt; |
313 |
|
} |