From 038cb9646b920936f8f497f9a4ee5b873853424e Mon Sep 17 00:00:00 2001 From: tech kaczynski Date: Thu, 22 Oct 2026 13:27:04 +1000 Subject: started work on command menu, added time of day editor. --- env.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'env.c') diff --git a/env.c b/env.c index 412dbea..20466f8 100644 --- a/env.c +++ b/env.c @@ -250,8 +250,11 @@ env_init(void) { env.sky_sdr_key = "sky"; env.sun_tex_key = "res/tex/sun.png"; env.moon_tex_key = "res/tex/moon.png"; - env.cycle = 0.35; - env.day_len = 240; // 600s = 5 min day/night cycle + + env.day_cur = 0.35f; + env.day_len = 240.0f; + env.cycle = env.day_cur; + env.sun_sz = 14; env.moon_sz = 4; // env.sun_tint = (Color) { 255, 255, 255, 40 }; @@ -267,11 +270,6 @@ env_exit(void) { void env_update(void) { - // if (env.day_len > 0.0f) { - // env.cycle += GetFrameTime() / env.day_len; - // env.cycle -= floorf(env.cycle); - // } - sky_update_lighting(); env_update_shader("model"); env_update_shader("model_cutoff"); -- cgit v1.2.3