light.h
304 Bytes
/* Lighting coefficients */
struct Light {
float ra;
float rd;
float rs;
float ga;
float gd;
float gs;
float ba;
float bd;
float bs;
float aa;
float ad;
float as;
float nx, ny, nz;
float bx, by, bz; /* bi sector */
float n;
};
#define magnitude(x,y,z) sqrt((x)*(x) + (y)*(y) + (z)*(z))