This commit is contained in:
MihailRis 2026-10-06 22:18:07 +03:00
parent 2f87bbf608
commit c0c60430d6
4 changed files with 5 additions and 5 deletions

View file

@ -8,8 +8,8 @@
#define CURVATURE_FACTOR 0.002
// lighting
#define SKY_LIGHT_MUL 2.5
#define SKY_LIGHT_TINT (vec3(1.0, 0.75, 0.6) * 2.0)
#define SKY_LIGHT_MUL 4.0
#define SKY_LIGHT_TINT (vec3(1.0, 0.2, 0.2) * 2.0)
// fog
#define FOG_POS_SCALE vec3(1.0, 0.2, 1.0)

View file

@ -34,7 +34,7 @@ float calc_shadow(
}
shadow /= 9.0;
shadow *= max(0.0, -dot(realnormal, u_sunDir));
shadow *= max(0.0, sqrt(-dot(realnormal, u_sunDir)));
return shadow;
}

View file

@ -4,7 +4,7 @@
#include <constants>
vec3 pick_sky_color(samplerCube cubemap, float dayTime, vec3 minSkyLight) {
float elevation = sin(dayTime * PI2) * 0.2;
float elevation = -sin(dayTime * PI2) * 0.1;
vec3 skyLightColor = texture(cubemap, vec3(0.0f, elevation, -0.4f)).rgb;
skyLightColor *= SKY_LIGHT_TINT;
skyLightColor = min(vec3(1.0f), skyLightColor * SKY_LIGHT_MUL);