--- ray/src/rt/source.h 1992/11/19 20:26:01 2.2 +++ ray/src/rt/source.h 1995/11/07 12:40:36 2.4 @@ -1,4 +1,4 @@ -/* Copyright (c) 1986 Regents of the University of California */ +/* Copyright (c) 1995 Regents of the University of California */ /* SCCSid "$SunId$ LBL" */ @@ -22,7 +22,7 @@ typedef struct { FVECT aim; /* aim direction or center */ float siz; /* output solid angle or area */ - float flen; /* focal length */ + float flen; /* focal length (negative if distant source) */ } SPOT; /* spotlight */ typedef struct { @@ -36,10 +36,10 @@ typedef struct { SPOT *s; /* spot */ } sl; /* localized source information */ union { - int success; /* successes - AIMREQT*failures */ + long success; /* successes - AIMREQT*failures */ struct { short pn; /* projection number */ - short sn; /* next source to aim for */ + int sn; /* next source to aim for */ } sv; /* virtual source */ } sa; /* source aiming information */ long ntests, nhits; /* shadow tests and hits */