libgarbage: fix default lighting being too bright

This commit is contained in:
Crispy 2023-07-29 16:41:50 +02:00
parent bf23886a73
commit a19707240a

View file

@ -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);
}