From 215081fe3d3e7a82c86f9006be992edef46027eb Mon Sep 17 00:00:00 2001 From: Xonk Date: Sun, 16 Mar 2025 18:30:11 -0400 Subject: [PATCH] fix SSAO not working when looking through translucent things --- shaders/dimensions/composite.fsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/dimensions/composite.fsh b/shaders/dimensions/composite.fsh index 16915e7..0f24e49 100644 --- a/shaders/dimensions/composite.fsh +++ b/shaders/dimensions/composite.fsh @@ -343,7 +343,7 @@ void main() { float noise = R2_dither(); vec2 texcoord = gl_FragCoord.xy*texelSize; - float z = texelFetch2D(depthtex0,ivec2(gl_FragCoord.xy),0).x; + float z = texelFetch2D(depthtex1,ivec2(gl_FragCoord.xy),0).x; #ifdef DISTANT_HORIZONS float DH_depth1 = texelFetch2D(dhDepthTex1,ivec2(gl_FragCoord.xy),0).x;