180 |
|
p.rdir[i] = nratio*r->rdir[i] + |
181 |
|
d1*r->ron[i]; |
182 |
|
normalize(p.rdir); /* not exact */ |
183 |
< |
} |
183 |
> |
} else |
184 |
> |
checknorm(p.rdir); |
185 |
|
#ifdef DISPERSE |
186 |
|
if (m->otype != MAT_DIELECTRIC |
187 |
|
|| r->rod > 0.0 |
219 |
|
if (hastexture && DOT(p.rdir,r->ron)*hastexture <= FTINY) |
220 |
|
for (i = 0; i < 3; i++) /* ignore texture */ |
221 |
|
p.rdir[i] = r->rdir[i] + 2.0*r->rod*r->ron[i]; |
222 |
< |
|
222 |
> |
checknorm(p.rdir); |
223 |
|
rayvalue(&p); /* reflected ray value */ |
224 |
|
|
225 |
|
multcolor(p.rcol, p.rcoef); /* color contribution */ |