mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2024-12-23 01:59:39 +08:00
unfuck everything maybe
This commit is contained in:
parent
6bf6aa0390
commit
d662c799a2
@ -687,15 +687,22 @@ void BilateralUpscale_REUSE_Z(sampler2D tex1, sampler2D tex2, sampler2D depth, v
|
||||
#endif
|
||||
|
||||
float EDGES = abs(offsetDepth - referenceDepth) < diffThreshold ? 1.0 : 1e-5;
|
||||
// #ifdef Variable_Penumbra_Shadows
|
||||
shadow_RESULT += texelFetch2D(tex1, posColor + radius + pos, 0).rgb * EDGES;
|
||||
// #endif
|
||||
|
||||
shadow_RESULT += texelFetch2D(tex1, posColor + radius + pos, 0).rgb * EDGES;
|
||||
ssao_RESULT += texelFetch2D(tex2, posColor + radius + pos, 0).rg * EDGES;
|
||||
#if indirect_effect == 1
|
||||
ssao_RESULT += texelFetch2D(tex2, posColor + radius + pos, 0).rg * EDGES;
|
||||
#endif
|
||||
|
||||
SUM += EDGES;
|
||||
}
|
||||
|
||||
filteredShadow = shadow_RESULT/SUM;
|
||||
ambientEffects = ssao_RESULT/SUM;
|
||||
// #ifdef Variable_Penumbra_Shadows
|
||||
filteredShadow = shadow_RESULT/SUM;
|
||||
// #endif
|
||||
#if indirect_effect == 1
|
||||
ambientEffects = ssao_RESULT/SUM;
|
||||
#endif
|
||||
}
|
||||
|
||||
void main() {
|
||||
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite2.vsh"
|
||||
#include "/dimensions/composite1.vsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite3.fsh"
|
||||
#include "/dimensions/composite2.fsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite3.vsh"
|
||||
#include "/dimensions/composite2.vsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite4.fsh"
|
||||
#include "/dimensions/composite3.fsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite4.vsh"
|
||||
#include "/dimensions/composite3.vsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite5.fsh"
|
||||
#include "/dimensions/composite4.fsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite5.vsh"
|
||||
#include "/dimensions/composite4.vsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite6.fsh"
|
||||
#include "/dimensions/composite5.fsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite6.vsh"
|
||||
#include "/dimensions/composite5.vsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite7.fsh"
|
||||
#include "/dimensions/composite6.fsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite7.vsh"
|
||||
#include "/dimensions/composite6.vsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite8.fsh"
|
||||
#include "/dimensions/composite7.fsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite8.vsh"
|
||||
#include "/dimensions/composite7.vsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite9.fsh"
|
||||
#include "/dimensions/composite8.fsh"
|
@ -2,4 +2,4 @@
|
||||
|
||||
#define OVERWORLD_SHADER
|
||||
|
||||
#include "/dimensions/composite9.vsh"
|
||||
#include "/dimensions/composite8.vsh"
|
Loading…
Reference in New Issue
Block a user