From a19707240abdd7106ef8314b14a2779d7826a2b6 Mon Sep 17 00:00:00 2001 From: CrispyPin Date: Sat, 29 Jul 2023 16:41:50 +0200 Subject: [PATCH] libgarbage: fix default lighting being too bright --- Assets/raymarched/lib/libgarbage_lighting.cginc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/raymarched/lib/libgarbage_lighting.cginc b/Assets/raymarched/lib/libgarbage_lighting.cginc index 09328e5..024ffd3 100644 --- a/Assets/raymarched/lib/libgarbage_lighting.cginc +++ b/Assets/raymarched/lib/libgarbage_lighting.cginc @@ -18,11 +18,11 @@ float3 lRenderSky(float3 ray_dir, float3 sun_dir) { } //calculate sky light -float3 lSky(float3 normal, float3 sky_col = float3(0.5, 0.8, 0.9)) { +float3 lSky(float3 normal, float3 sky_col = float3(0.1, 0.16, 0.18)) { return sky_col * (0.5 + 0.5 * normal.y); } -float lSun(float3 normal, float3 sun_dir, float3 sun_col = float3(7, 5.5, 3)) { +float lSun(float3 normal, float3 sun_dir, float3 sun_col = float3(1, 0.78, 0.43)) { return sun_col * max(dot(normal, sun_dir), 0); }