add 'advanced' post-effect load configuration

This commit is contained in:
MihailRis
2025-06-13 23:28:16 +03:00
parent 9cc59c8848
commit 02a91e0b72
10 changed files with 49 additions and 21 deletions
+4 -1
View File
@@ -11,7 +11,10 @@
],
"post-effects": [
"default",
"ssao"
{
"name": "ssao",
"advanced": true
}
],
"textures": [
"gui/menubg",
+1 -1
View File
@@ -12,7 +12,7 @@ float calc_shadow() {
}
float step = 1.0 / float(u_shadowsRes);
float s = pow(abs(cos(u_dayTime * 6.283185)), 0.7); // 2*PI precomputed
float s = pow(abs(cos(u_dayTime * 6.283185)), 0.5); // 2*PI precomputed
vec3 normalOffset = a_realnormal * (a_distance > 128.0 ? 0.2 : 0.04);
int shadowIdx = a_distance > 128.0 ? 1 : 0;