From 63a53f79619ab5a65b58d957bb6efd740d2ca303 Mon Sep 17 00:00:00 2001 From: Xonk Date: Thu, 7 May 2026 00:46:30 -0400 Subject: [PATCH] fix AERIAL_PERSPECTIVE_TEST working underwater --- shaders/dimensions/composite3.fsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/dimensions/composite3.fsh b/shaders/dimensions/composite3.fsh index 55aa64b..1048a58 100644 --- a/shaders/dimensions/composite3.fsh +++ b/shaders/dimensions/composite3.fsh @@ -588,7 +588,7 @@ void main() { vec3 samplesky = skyFromTex(mix(testPos, vec3(testPos.x,-1.0,testPos.z), density), colortex4).rgb/1200.0; - if(!isSky) color.rgb = color.rgb * density + (samplesky - samplesky * density); + if(!isSky && isEyeInWater == 0) color.rgb = color.rgb * density + (samplesky - samplesky * density); // color.rgb = samplesky; #endif