--- ray/src/rt/source.h 1991/11/12 17:10:17 2.1 +++ 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 */ @@ -127,7 +127,7 @@ extern double shadcert; /* shadow testing certainty extern double srcsizerat; /* max. ratio of source size/dist. */ extern int directrelay; /* maximum number of source relays */ extern int vspretest; /* virtual source pretest density */ -extern int directinvis; /* sources invisible? */ +extern int directvis; /* sources visible? */ #define getplaneq(c,o) (*sfun[(o)->otype].of->getpleq)(c,o) #define getmaxdisk(c,o) (*sfun[(o)->otype].of->getdisk)(c,o)