| 7 |
|
|
| 8 |
|
#include "ray.h" |
| 9 |
|
#include "random.h" |
| 10 |
+ |
#include "paths.h" |
| 11 |
|
#include "resolu.h" |
| 12 |
|
|
| 13 |
|
#define NTRUNKBR 4 /* number of branches at trunk */ |
| 30 |
|
COLOR intens; /* output times solid angle */ |
| 31 |
|
} LOSTLIGHT; |
| 32 |
|
|
| 32 |
– |
extern char *progname; |
| 33 |
– |
|
| 33 |
|
FVECT scene_cent; /* center of octree cube */ |
| 34 |
|
RREAL scene_rad; /* radius to get outside cube from center */ |
| 35 |
|
|
| 501 |
|
TRITREE *samptree; |
| 502 |
|
double thresh = 0; |
| 503 |
|
int i; |
| 504 |
< |
|
| 505 |
< |
progname = argv[0]; |
| 504 |
> |
|
| 505 |
> |
fixargv0(argv[0]); /* sets global progname */ |
| 506 |
> |
|
| 507 |
|
for (i = 1; i < argc && argv[i][0] == '-'; i++) |
| 508 |
|
switch (argv[i][1]) { |
| 509 |
|
case 'd': /* number of samples */ |