--- ray/src/rt/rtrace.c 1993/07/14 10:38:49 2.16 +++ ray/src/rt/rtrace.c 1994/12/21 09:52:00 2.18 @@ -1,4 +1,4 @@ -/* Copyright (c) 1992 Regents of the University of California */ +/* Copyright (c) 1994 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; @@ -61,6 +61,8 @@ double srcsizerat = .25; /* maximum ratio source siz 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 */ @@ -243,6 +245,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);