14 |
|
|
15 |
|
#include "color.h" |
16 |
|
|
17 |
+ |
#define MAXDIM 32 /* maximum number of dimensions */ |
18 |
+ |
|
19 |
+ |
#define MAXSLIST 32 /* maximum sources to check */ |
20 |
+ |
|
21 |
|
/* ray type flags */ |
22 |
|
#define PRIMARY 01 /* original ray */ |
23 |
|
#define SHADOW 02 /* ray to light source */ |
54 |
|
COLOR pcol; /* pattern color */ |
55 |
|
COLOR rcol; /* returned ray value */ |
56 |
|
double rt; /* returned effective ray length */ |
57 |
+ |
COLOR cext; /* medium extinction coefficient */ |
58 |
+ |
COLOR albedo; /* medium scattering albedo */ |
59 |
+ |
float gecc; /* scattering eccentricity coefficient */ |
60 |
+ |
int *slights; /* list of lights to test for scattering */ |
61 |
|
} RAY; |
62 |
|
|
63 |
|
extern int raytrace(); |
64 |
|
|
65 |
|
extern double raynormal(); |
66 |
|
|
67 |
< |
extern double raydistance(); |
67 |
> |
extern double raydist(); |
68 |
|
|
69 |
|
extern int dimlist[]; /* dimension list for distribution */ |
70 |
|
extern int ndims; /* number of dimensions so far */ |
71 |
|
extern int samplendx; /* index for this sample */ |
64 |
– |
|
65 |
– |
#define MAXDIM 32 /* maximum number of dimensions */ |
72 |
|
|
73 |
|
#define rayvalue(r) (*(r)->revf)(r) |