--- ray/src/rt/ambient.h 2005/09/23 19:04:53 2.16 +++ ray/src/rt/ambient.h 2010/10/05 18:05:23 2.17 @@ -1,4 +1,4 @@ -/* RCSid $Id: ambient.h,v 2.16 2005/09/23 19:04:53 greg Exp $ */ +/* RCSid $Id: ambient.h,v 2.17 2010/10/05 18:05:23 greg Exp $ */ /* * Common definitions for interreflection routines. * @@ -37,15 +37,15 @@ typedef struct { COLOR v; /* division sum (partial) */ float r; /* 1/distance sum */ float k; /* variance for this division */ - int n; /* number of subsamples */ - short t, p; /* theta, phi indices */ + int n; /* number of subsamples */ + unsigned short t, p; /* theta, phi indices */ } AMBSAMP; /* ambient sample division */ typedef struct { FVECT ux, uy, uz; /* x, y and z axis directions */ COLOR acoef; /* division contribution coefficient */ int ns; /* number of super-samples */ - short nt, np; /* number of theta and phi directions */ + int nt, np; /* number of theta and phi directions */ } AMBHEMI; /* ambient sample hemisphere */ extern double maxarad; /* maximum ambient radius */