htsky

Load and structure a vertically stratified atmosphere
git clone git://git.meso-star.fr/htsky.git
Log | Files | Refs | README | LICENSE

commit e46596cdf360ca235fbe555537aae181d1ae5acb
parent 5bb1b6ac395c1b216df4d1d30f7b8104c6b85afb
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 21 Feb 2020 11:30:11 +0100

Add support of the -O option to smtl_program_init

This option defines the cache file of the sky data.

Diffstat:
Msrc/htsky_smtl.c | 3++-
Msrc/htsky_smtl.h | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/htsky_smtl.c b/src/htsky_smtl.c @@ -82,12 +82,13 @@ args_init(struct htsky_args* args, int argc, char** argv) optind = 0; opterr = 0; - while((opt = getopt(argc, argv, "a:c:m:n:rT:t:V:v")) != -1) { + while((opt = getopt(argc, argv, "a:c:m:n:O:rT:t:V:v")) != -1) { switch(opt) { case 'a': args->htgop_filename = optarg; break; case 'c': args->htcp_filename = optarg; break; case 'm': args->htmie_filename = optarg; break; case 'n': args->name = optarg; break; + case 'O': args->cache_filename = optarg; break; case 'r': args->repeat_clouds = 1; break; case 'T': res = cstr_to_double(optarg, &args->optical_thickness); diff --git a/src/htsky_smtl.h b/src/htsky_smtl.h @@ -28,6 +28,7 @@ * -c CLOUDS HTCP file storing the properties of the clouds. * -m MIE HTMie file storing the optical properties of the clouds. * -n NAME name of the sky. BY default it is "sky" + * -O CACHE name the cache file used to store/restore the sky data * -r infinitely repeat the clouds along the X and Y axis. * -T THRESHOLD optical thickness used as threshold during the octree\n" * building. By default its value is 1.