techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/env.h
diff options
context:
space:
mode:
authortech kaczynski <tk@techkaczynski.dev>2026-10-22 13:27:04 +1000
committertech kaczynski <tk@techkaczynski.dev>2026-10-22 13:27:04 +1000
commit038cb9646b920936f8f497f9a4ee5b873853424e (patch)
treea5df82a2e705c7f671ac9f2450dc88a68bbd25b0 /env.h
parentf5259b6c44b5902a0ca35de113fe16b9275ea13e (diff)
started work on command menu, added time of day editor.
Diffstat (limited to 'env.h')
-rw-r--r--env.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/env.h b/env.h
index c62f884..7a9266a 100644
--- a/env.h
+++ b/env.h
@@ -23,8 +23,9 @@ typedef struct {
f32 day_amount;
f32 twilight_amount;
- f32 cycle;
- f32 day_len;
+ f32 day_cur; /* starting phase, 0 inclusive to 1 exclusive */
+ f32 day_len; /* real seconds per complete lighting cycle */
+ f32 cycle; /* current lighting phase */
/* sun/moon textures */
cstr sun_tex_key, moon_tex_key;