| 1 |
< |
/* Copyright (c) 1995 Regents of the University of California */ |
| 1 |
> |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
| 2 |
|
|
| 3 |
|
#ifndef lint |
| 4 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
| 4 |
> |
static char SCCSid[] = "$SunId$ SGI"; |
| 5 |
|
#endif |
| 6 |
|
|
| 7 |
|
/* |
| 227 |
|
} |
| 228 |
|
|
| 229 |
|
if (r->ro != NULL) { |
| 230 |
+ |
r->robj = objndx(r->ro); |
| 231 |
|
for (i = 0; i < 3; i++) |
| 232 |
|
r->ron[i] = -r->rdir[i]; |
| 233 |
|
r->rod = 1.0; |
| 424 |
|
copycolor(sr.cext, r->cext); |
| 425 |
|
copycolor(sr.albedo, r->albedo); |
| 426 |
|
sr.gecc = r->gecc; |
| 427 |
+ |
sr.slights = r->slights; |
| 428 |
|
rayvalue(&sr); /* eval. source ray */ |
| 429 |
|
if (bright(sr.rcol) <= FTINY) |
| 430 |
|
continue; |
| 538 |
|
/* check for passed illum */ |
| 539 |
|
if (passillum(m, r)) { |
| 540 |
|
if (m->oargs.nsargs && strcmp(m->oargs.sarg[0], VOIDID)) |
| 541 |
< |
return(rayshade(r, modifier(m->oargs.sarg[0]))); |
| 541 |
> |
return(rayshade(r,lastmod(objndx(m),m->oargs.sarg[0]))); |
| 542 |
|
raytrans(r); |
| 543 |
|
return(1); |
| 544 |
|
} |