237 |
|
raytexture(r, m->omod); |
238 |
|
nd.pdot = raynormal(nd.pnorm, r); /* perturb normal */ |
239 |
|
multcolor(nd.mcolor, r->pcol); /* modify material color */ |
240 |
– |
r->rt = r->rot; /* default ray length */ |
240 |
|
transtest = 0; |
241 |
|
/* load auxiliary files */ |
242 |
|
if (m->otype == MAT_PDATA || m->otype == MAT_MDATA |
285 |
|
sr.rdir[i] = r->rdir[i] - |
286 |
|
.75*r->pert[i]; |
287 |
|
normalize(sr.rdir); |
288 |
< |
} else |
288 |
> |
} else { |
289 |
> |
VCOPY(sr.rdir, r->rdir); |
290 |
|
transtest = 2; |
291 |
+ |
} |
292 |
|
rayvalue(&sr); |
293 |
|
multcolor(sr.rcol, ctmp); |
294 |
|
addcolor(r->rcol, sr.rcol); |