--- ray/src/rt/rtrace.c 1993/07/14 10:38:49 2.16 +++ ray/src/rt/rtrace.c 1996/04/17 14:02:09 2.22 @@ -1,4 +1,4 @@ -/* Copyright (c) 1992 Regents of the University of California */ +/* Copyright (c) 1995 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; @@ -53,21 +53,29 @@ int vresolu = 0; /* vertical resolution */ double dstrsrc = 0.0; /* square source distribution */ double shadthresh = .05; /* shadow threshold */ double shadcert = .5; /* shadow certainty */ -int directrelay = 1; /* number of source relays */ +int directrelay = 2; /* number of source relays */ int vspretest = 512; /* virtual source pretest density */ int directvis = 1; /* sources visible? */ -double srcsizerat = .25; /* maximum ratio source size/dist. */ +double srcsizerat = .2; /* maximum ratio source size/dist. */ +COLOR cextinction = BLKCOLOR; /* global extinction coefficient */ +COLOR salbedo = BLKCOLOR; /* global scattering albedo */ +double seccg = 0.; /* global scattering eccentricity */ +double ssampdist = 0.; /* scatter sampling distance */ + double specthresh = .15; /* specular sampling threshold */ double specjitter = 1.; /* specular sampling jitter */ +int backvis = 1; /* back face visibility */ + int maxdepth = 6; /* maximum recursion depth */ double minweight = 4e-3; /* minimum ray weight */ COLOR ambval = BLKCOLOR; /* ambient value */ +int ambvwt = 0; /* initial weight for ambient value */ double ambacc = 0.2; /* ambient accuracy */ -int ambres = 32; /* ambient resolution */ -int ambdiv = 128; /* ambient divisions */ +int ambres = 128; /* ambient resolution */ +int ambdiv = 512; /* ambient divisions */ int ambssamp = 0; /* ambient super-samples */ int ambounce = 0; /* ambient bounces */ char *amblist[128]; /* ambient include/exclude list */ @@ -243,6 +251,7 @@ FVECT org, dir; { VCOPY(thisray.rorg, org); VCOPY(thisray.rdir, dir); + thisray.rmax = 0.0; rayorigin(&thisray, NULL, PRIMARY, 1.0); if (castonly) localhit(&thisray, &thescene) || sourcehit(&thisray);