Skip to content

Commit

Permalink
Fix shader compile error (for real)
Browse files Browse the repository at this point in the history
  • Loading branch information
nashmuhandes committed Sep 8, 2024
1 parent b586fe4 commit 827360e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wadsrc/static/shaders/scene/frag_main.glsl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void main()
#endif

#ifdef USE_DEPTHFADEFALLOFF
float behindFragmentDepth = texelFetch(LinearDepth, ivec2(gl_FragCoord.xy), 0);
float behindFragmentDepth = texelFetch(LinearDepth, ivec2(gl_FragCoord.xy), 0).r;
material.Base.a *= clamp((behindFragmentDepth - pixelpos.w) / uDepthFadeFalloff, 0.0, 1.0);
#endif

Expand Down

0 comments on commit 827360e

Please sign in to comment.