Skip to content

Commit

Permalink
fix(rxpict): Match defaults to rpict
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Dec 13, 2024
1 parent 0604a2b commit 43a52d9
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/rt/rxpmain.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: rxpmain.cpp,v 2.4 2024/11/06 18:28:52 greg Exp $";
static const char RCSid[] = "$Id: rxpmain.cpp,v 2.5 2024/12/13 22:13:24 greg Exp $";
#endif
/*
* rxpmain.cpp - main for rxpict batch rendering program
Expand Down Expand Up @@ -57,7 +57,6 @@ static void printdefaults(void);
"AdaptiveShadowTesting\nOutputs=v,l\n" \
"OutputCS=RGB,XYZ,prims,spec\n"


void
quit(int code) /* quit program */
{
Expand All @@ -67,6 +66,20 @@ quit(int code) /* quit program */
exit(code);
}

/* Set default options */
static void
default_options(void)
{
shadthresh = .05;
shadcert = .5;
srcsizerat = .25;
directrelay = 1;
ambacc = 0.2;
ambres = 64;
ambdiv = 512;
ambssamp = 128;
maxdepth = 7;
}

int
main(int argc, char *argv[])
Expand Down Expand Up @@ -97,6 +110,8 @@ main(int argc, char *argv[])
strcat(RFeatureList, RXPICT_FEATURES);
if (argc > 1 && !strcmp(argv[1], "-features"))
return feature_status(argc-2, argv+2);
/* set defaults */
default_options();
/* option city */
for (i = 1; i < argc; i++) {
/* expand arguments */
Expand Down

0 comments on commit 43a52d9

Please sign in to comment.