Fix shader compile error
This commit is contained in:
parent
cc06294932
commit
b586fe4b3d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue