fix water shadow square when DH shadowmap is on

This commit is contained in:
Xonk 2024-02-05 22:53:38 -05:00
parent f971b7e3c6
commit a4e8419081
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ uniform sampler2D tex;
//////////////////////////////VOID MAIN//////////////////////////////
void main() {
// if(water > 0) discard;
if(water > 0) discard;
gl_FragData[0] = texture2D(tex, texcoord.xy);
}

View File

@ -47,7 +47,7 @@ vec4 toClipSpace3(vec3 viewSpacePosition) {
void main() {
water = 0;
// if(gl_Color.a < 1.0) water = 1;
if(gl_Color.a < 1.0) water = 1;
texcoord.xy = gl_MultiTexCoord0.xy;