1 |
|
#ifndef lint |
2 |
< |
static const char RCSid[] = "$Id$"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
4 |
|
/* |
5 |
|
* glass.c - simpler shading function for thin glass surfaces. |
66 |
|
|
67 |
|
setcolor(mcolor, m->oargs.farg[0], m->oargs.farg[1], m->oargs.farg[2]); |
68 |
|
|
69 |
+ |
/* get modifiers */ |
70 |
+ |
raytexture(r, m->omod); |
71 |
|
if (r->rod < 0.0) /* reorient if necessary */ |
72 |
|
flipsurface(r); |
73 |
|
mirtest = transtest = 0; |
74 |
|
mirdist = transdist = r->rot; |
75 |
< |
/* get modifiers */ |
76 |
< |
raytexture(r, m->omod); |
75 |
< |
if (hastexture = DOT(r->pert,r->pert) > FTINY*FTINY) |
75 |
> |
/* perturb normal */ |
76 |
> |
if (hastexture = (DOT(r->pert,r->pert) > FTINY*FTINY)) { |
77 |
|
pdot = raynormal(pnorm, r); |
78 |
< |
else { |
78 |
> |
} else { |
79 |
|
VCOPY(pnorm, r->ron); |
80 |
|
pdot = r->rod; |
81 |
|
} |