1 |
< |
/* Copyright (c) 1993 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1995 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
64 |
|
int directvis = 1; /* sources visible? */ |
65 |
|
double srcsizerat = .25; /* maximum ratio source size/dist. */ |
66 |
|
|
67 |
+ |
COLOR cextinction = BLKCOLOR; /* global extinction coefficient */ |
68 |
+ |
double salbedo = 0.; /* global scattering albedo */ |
69 |
+ |
double seccg = 0.; /* global scattering eccentricity */ |
70 |
+ |
double ssampdist = 0.; /* scatter sampling distance */ |
71 |
+ |
|
72 |
|
double specthresh = .15; /* specular sampling threshold */ |
73 |
|
double specjitter = 1.; /* specular sampling jitter */ |
74 |
|
|
75 |
+ |
int backvis = 1; /* back face visibility */ |
76 |
+ |
|
77 |
|
int maxdepth = 6; /* maximum recursion depth */ |
78 |
|
double minweight = 5e-3; /* minimum ray weight */ |
79 |
|
|
609 |
|
{ |
610 |
|
static RAY thisray; |
611 |
|
|
612 |
< |
if (viewray(thisray.rorg, thisray.rdir, &ourview, |
613 |
< |
(x+pixjitter())/hres, (y+pixjitter())/vres) < 0) { |
612 |
> |
if ((thisray.rmax = viewray(thisray.rorg, thisray.rdir, &ourview, |
613 |
> |
(x+pixjitter())/hres, (y+pixjitter())/vres)) < -FTINY) { |
614 |
|
setcolor(col, 0.0, 0.0, 0.0); |
615 |
|
return(0.0); |
616 |
|
} |