155 |
|
raytexture(r, m->omod); |
156 |
|
nd.pdot = raynormal(nd.pnorm, r); /* perturb normal */ |
157 |
|
multcolor(nd.mcolor, r->pcol); /* modify material color */ |
158 |
– |
r->rt = r->rot; /* default ray length */ |
158 |
|
transtest = 0; |
159 |
|
/* get specular component */ |
160 |
|
nd.rspec = m->oargs.farg[3]; |
201 |
|
lr.rdir[i] = r->rdir[i] - |
202 |
|
.75*r->pert[i]; |
203 |
|
normalize(lr.rdir); |
204 |
< |
} else |
204 |
> |
} else { |
205 |
> |
VCOPY(lr.rdir, r->rdir); |
206 |
|
transtest = 2; |
207 |
+ |
} |
208 |
|
rayvalue(&lr); |
209 |
|
scalecolor(lr.rcol, nd.tspec); |
210 |
|
multcolor(lr.rcol, nd.mcolor); /* modified by color */ |