225 |
|
VCOPY(nd.pnorm, r->ron); |
226 |
|
nd.pdot = r->rod; |
227 |
|
} |
228 |
< |
if (r->ro != NULL && isflat(r->ro->otype)) |
228 |
> |
if (!hastexture && r->ro != NULL && isflat(r->ro->otype)) |
229 |
|
nd.specfl |= SP_FLAT; |
230 |
|
if (nd.pdot < .001) |
231 |
|
nd.pdot = .001; /* non-zero for dirnorm() */ |
319 |
|
copyscolor(r->mcol, lr.rcol); |
320 |
|
saddscolor(r->rcol, lr.rcol); |
321 |
|
r->rmt = r->rot; |
322 |
< |
if (nd.specfl & SP_FLAT && |
323 |
< |
!hastexture | (r->crtype & AMBIENT)) |
322 |
> |
if (nd.specfl & SP_FLAT && r->crtype & AMBIENT) |
323 |
|
r->rmt += raydistance(&lr); |
324 |
|
} |
325 |
|
} |