unfuck everything maybe

This commit is contained in:
Xonk 2024-03-01 23:21:43 -05:00
parent 6bf6aa0390
commit d662c799a2
16 changed files with 28 additions and 21 deletions

View File

@ -687,15 +687,22 @@ void BilateralUpscale_REUSE_Z(sampler2D tex1, sampler2D tex2, sampler2D depth, v
#endif #endif
float EDGES = abs(offsetDepth - referenceDepth) < diffThreshold ? 1.0 : 1e-5; float EDGES = abs(offsetDepth - referenceDepth) < diffThreshold ? 1.0 : 1e-5;
// #ifdef Variable_Penumbra_Shadows
shadow_RESULT += texelFetch2D(tex1, posColor + radius + pos, 0).rgb * EDGES; shadow_RESULT += texelFetch2D(tex1, posColor + radius + pos, 0).rgb * EDGES;
ssao_RESULT += texelFetch2D(tex2, posColor + radius + pos, 0).rg * EDGES; // #endif
#if indirect_effect == 1
ssao_RESULT += texelFetch2D(tex2, posColor + radius + pos, 0).rg * EDGES;
#endif
SUM += EDGES; SUM += EDGES;
} }
// #ifdef Variable_Penumbra_Shadows
filteredShadow = shadow_RESULT/SUM; filteredShadow = shadow_RESULT/SUM;
ambientEffects = ssao_RESULT/SUM; // #endif
#if indirect_effect == 1
ambientEffects = ssao_RESULT/SUM;
#endif
} }
void main() { void main() {

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite2.vsh" #include "/dimensions/composite1.vsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite3.fsh" #include "/dimensions/composite2.fsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite3.vsh" #include "/dimensions/composite2.vsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite4.fsh" #include "/dimensions/composite3.fsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite4.vsh" #include "/dimensions/composite3.vsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite5.fsh" #include "/dimensions/composite4.fsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite5.vsh" #include "/dimensions/composite4.vsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite6.fsh" #include "/dimensions/composite5.fsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite6.vsh" #include "/dimensions/composite5.vsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite7.fsh" #include "/dimensions/composite6.fsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite7.vsh" #include "/dimensions/composite6.vsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite8.fsh" #include "/dimensions/composite7.fsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite8.vsh" #include "/dimensions/composite7.vsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite9.fsh" #include "/dimensions/composite8.fsh"

View File

@ -2,4 +2,4 @@
#define OVERWORLD_SHADER #define OVERWORLD_SHADER
#include "/dimensions/composite9.vsh" #include "/dimensions/composite8.vsh"