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

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