polyadvent

A game engine from scratch in C
git clone git://jb55.com/polyadvent
Log | Files | Refs | README

commit 00b80edca3000d2c798dc9fe1b9a2937cdb5a0d2
parent a7eb945821cdaaf4e170fca1e3471828f79f12db
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 30 Oct 2018 01:38:44 -0700

ok

Diffstat:
Msrc/update.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/update.c b/src/update.c @@ -235,9 +235,9 @@ void resize_fbos(struct game *game, int width, int height) { // TODO: match based on some real concept of time static void day_night_cycle(float n, struct resources *res) { /* float val = 9950.0; */ - float val = n * 100.0; + float val = n * 800.0; float intensity = vec3_dot(res->light_dir, V3(0.0, 0.0, 1.0)); - intensity = clamp(intensity, 0.8, 1.0); + intensity = clamp(intensity, 0.4, 1.0); float light_pos[3]; ;