basic ray tracing:part 5 (rtd.h)

Friedrich Knauss fritzz at net1.UCSD.EDU
Sat Jul 26 07:40:47 AEST 1986


struct vector {
double x;
double y;
double z;
double l;
double xzl;} ;

struct ray {
struct vector org;
struct vector dir;} ;

struct sphere {
struct vector cent;
double rad;} ;

struct ball {
struct sphere s;
float ior;
float rfr;
float rfl;
float dif;
float amb;
};

struct mat {
struct vector x;  /* first !row! */
struct vector y;  /*second !row! */
struct vector z;}; /* third !row! */



More information about the Comp.sources.unix mailing list