diff options
Diffstat (limited to 'env.c')
| -rw-r--r-- | env.c | 12 |
1 files changed, 5 insertions, 7 deletions
@@ -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"); |
