Fix shader compile error

This commit is contained in:
Magnus Norddahl 2024-09-08 21:26:22 +02:00
commit b586fe4b3d

View file

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