182 |
|
raytrans(r); |
183 |
|
return(1); |
184 |
|
} |
185 |
+ |
raytexture(r, m->omod); |
186 |
|
flipsurface(r); /* reorient if backvis */ |
187 |
< |
} |
187 |
> |
} else |
188 |
> |
raytexture(r, m->omod); |
189 |
|
nd.mp = m; |
190 |
|
nd.rp = r; |
191 |
|
/* get material color */ |
199 |
|
nd.specfl |= SP_PURE; |
200 |
|
if (r->ro != NULL && isflat(r->ro->otype)) |
201 |
|
nd.specfl |= SP_FLAT; |
202 |
< |
/* get modifiers */ |
201 |
< |
raytexture(r, m->omod); |
202 |
> |
|
203 |
|
if (hastexture = DOT(r->pert,r->pert) > FTINY*FTINY) |
204 |
|
nd.pdot = raynormal(nd.pnorm, r); /* perturb normal */ |
205 |
|
else { |