36 |
|
RAY *r |
37 |
|
) |
38 |
|
{ |
39 |
– |
SCOLOR mcolor; |
40 |
– |
RAY nr; |
41 |
– |
int rpure = 1; |
42 |
– |
int i; |
39 |
|
/* check arguments */ |
40 |
|
if (m->oargs.nfargs != 3 || m->oargs.nsargs > 1) |
41 |
|
objerror(m, USER, "bad number of arguments"); |
69 |
|
raytrans(r); /* unless back visibility is off */ |
70 |
|
return(1); |
71 |
|
} |
72 |
+ |
{ /* new context for stack memory */ |
73 |
+ |
SCOLOR mcolor; |
74 |
+ |
RAY nr; |
75 |
+ |
int rpure = 1; |
76 |
+ |
int i; |
77 |
|
/* get modifiers */ |
78 |
|
raytexture(r, m->omod); |
79 |
|
/* assign material color */ |
115 |
|
r->rmt = r->rot; |
116 |
|
if (rpure && r->ro != NULL && isflat(r->ro->otype)) |
117 |
|
r->rmt += raydistance(&nr); |
118 |
+ |
} /* end stack context */ |
119 |
|
return(1); |
120 |
|
} |
121 |
|
|