techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/env.h
diff options
context:
space:
mode:
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;