From b586fe4b3d8915de1e13bf3fd75a152793a640f3 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 8 Sep 2024 21:26:22 +0200 Subject: [PATCH] Fix shader compile error --- wadsrc/static/shaders/scene/frag_main.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wadsrc/static/shaders/scene/frag_main.glsl b/wadsrc/static/shaders/scene/frag_main.glsl index ddc844f66..71f714438 100644 --- a/wadsrc/static/shaders/scene/frag_main.glsl +++ b/wadsrc/static/shaders/scene/frag_main.glsl @@ -28,7 +28,7 @@ void main() #endif #ifdef USE_DEPTHFADEFALLOFF - float behindFragmentDepth = texelFetch(LinearDepth, ivec2(gl_FragCoord.xy)); + float behindFragmentDepth = texelFetch(LinearDepth, ivec2(gl_FragCoord.xy), 0); material.Base.a *= clamp((behindFragmentDepth - pixelpos.w) / uDepthFadeFalloff, 0.0, 1.0); #endif