From 2f330b1bf4fd1e6add2414c53090ac8dc411c2d8 Mon Sep 17 00:00:00 2001 From: Xonk Date: Fri, 28 Jun 2024 15:03:00 -0400 Subject: [PATCH] fix broken sky in end/nether --- shaders/dimensions/composite1.fsh | 4 ++-- shaders/lib/settings.glsl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/shaders/dimensions/composite1.fsh b/shaders/dimensions/composite1.fsh index 4a79cc2..1967329 100644 --- a/shaders/dimensions/composite1.fsh +++ b/shaders/dimensions/composite1.fsh @@ -966,7 +966,7 @@ void main() { Background += resourcePackskyBox; #endif - #if defined VOLUMETRIC_CLOUDS && !defined CLOUDS_INTERSECT_TERRAIN + #if defined OVERWORLD_SHADER && defined VOLUMETRIC_CLOUDS && !defined CLOUDS_INTERSECT_TERRAIN vec4 Clouds = texture2D_bicubic_offset(colortex0, texcoord*CLOUDS_QUALITY, noise, RENDER_SCALE.x); Background = Background * Clouds.a + Clouds.rgb; #endif @@ -1340,7 +1340,7 @@ void main() { #endif // gl_FragData[0].rgb = albedo*30; // gl_FragData[0].rgb = vec3(1) * Shadows; - // if(swappedDepth >= 1.0) gl_FragData[0].rgb = vec3(0.1); + if(swappedDepth >= 1.0) gl_FragData[0].rgb = vec3(0.1); // gl_FragData[0].rgb = vec3(1) * ld(texture2D(depthtex1, texcoord).r); // if(texcoord.x > 0.5 )gl_FragData[0].rgb = vec3(1) * ld(texture2D(depthtex0, texcoord).r); diff --git a/shaders/lib/settings.glsl b/shaders/lib/settings.glsl index 15a025d..e2371b3 100644 --- a/shaders/lib/settings.glsl +++ b/shaders/lib/settings.glsl @@ -1,4 +1,4 @@ -#define SHADER_VERSION_LABEL 469 // [469] +#define SHADER_VERSION_LABEL 470 // [470] #define saturate(x) clamp(x,0.0,1.0)