1 |
< |
/* Copyright (c) 1990 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
136 |
|
raytrans(r); |
137 |
|
return; |
138 |
|
} |
139 |
< |
if (m->otype != MAT_ILLUM) |
139 |
> |
if (!islight(m->otype)) |
140 |
|
m = &Lamb; |
141 |
|
} |
142 |
|
(*ofun[m->otype].funp)(m, r); /* execute function */ |
322 |
|
else if (r->rdir[i] < -FTINY) |
323 |
|
sflags |= 0x10 << i; |
324 |
|
} |
325 |
+ |
if (sflags == 0) |
326 |
+ |
error(CONSISTENCY, "zero ray direction in localhit"); |
327 |
|
t = 0.0; |
328 |
|
if (!incube(scene, curpos)) { |
329 |
|
/* find distance to entry */ |