update shadows.glsl

This commit is contained in:
MihailRis 2026-09-28 01:47:23 +03:00
parent ffba11e87f
commit 19a952a3be

View file

@ -25,7 +25,6 @@ float calc_shadow(
projCoords.z -= 0.00001 / u_shadowsRes + bias; projCoords.z -= 0.00001 / u_shadowsRes + bias;
float shadow = 0.0; float shadow = 0.0;
if (dot(realnormal, u_sunDir) < 0.0) {
// 3x3 kernel // 3x3 kernel
for (int y = -1; y <= 1; y++) { for (int y = -1; y <= 1; y++) {
for (int x = -1; x <= 1; x++) { for (int x = -1; x <= 1; x++) {
@ -34,9 +33,6 @@ float calc_shadow(
} }
} }
shadow /= 9.0; shadow /= 9.0;
} else {
shadow = 0.0;
}
return shadow; return shadow;
} }