From 045cbed5fcf2067d57d6c4797b85611befe9b6f7 Mon Sep 17 00:00:00 2001 From: Paris DOUADY Date: Mon, 18 Dec 2023 19:31:10 +0100 Subject: [PATCH] cleanup demo + fix assets_gui lighting --- assets_gui/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets_gui/src/main.rs b/assets_gui/src/main.rs index 9de84596..289626ab 100644 --- a/assets_gui/src/main.rs +++ b/assets_gui/src/main.rs @@ -64,7 +64,8 @@ impl engine::framework::State for State { let sun = vec3(1.0, -1.0, 1.0).normalize(); params.time_always = (params.time_always + ctx.delta) % 3600.0; - params.sun_col = sun.z.max(0.0).sqrt().sqrt() + params.sun_col = 4.0 + * sun.z.max(0.0).sqrt().sqrt() * LinearColor::new(1.0, 0.95 + sun.z * 0.05, 0.95 + sun.z * 0.05, 1.0); params.sun = sun; params.viewport = Vec2::new(gfx.size.0 as f32, gfx.size.1 as f32);