fix broken sky in end/nether

This commit is contained in:
Xonk 2024-06-28 15:03:00 -04:00
parent 114bd31d09
commit 2f330b1bf4
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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)