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 |
|
/* |
126 |
|
m = objptr(i); |
127 |
|
if (m->otype != MAT_ILLUM || m->oargs.nsargs < 1 || |
128 |
|
!strcmp(m->oargs.sarg[0], VOIDID) || |
129 |
< |
(i = modifier(m->oargs.sarg[0])) == OVOID) |
129 |
> |
(i = lastmod(objndx(m), m->oargs.sarg[0])) == OVOID) |
130 |
|
return(m); /* direct modifier */ |
131 |
|
return(objptr(i)); /* illum alternate */ |
132 |
|
} |
157 |
|
normalize(nsloc); |
158 |
|
VCOPY(ourspot.aim, ocent); |
159 |
|
ourspot.siz = PI*maxrad2; |
160 |
< |
ourspot.flen = 0.; |
160 |
> |
ourspot.flen = -1.; |
161 |
|
if (source[sn].sflags & SSPOT) { |
162 |
|
multp3(theirspot.aim, source[sn].sl.s->aim, pm); |
163 |
|
/* adjust for source size */ |