mirror of
https://github.com/X0nk/Bliss-Shader.git
synced 2026-10-10 05:03:04 +08:00
add depthcheck to voxy forward rendering to fix incorrectly visible water with some mods
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
"noisetex",
|
||||
"colortex4",
|
||||
"colortex5",
|
||||
"vxDepthTexOpaque"
|
||||
"vxDepthTexOpaque",
|
||||
"depthtex1"
|
||||
],
|
||||
"uniforms": [
|
||||
"vxRenderDistance",
|
||||
|
||||
@@ -327,4 +327,6 @@ void voxy_emitFragment(VoxyFragmentParameters parameters) {
|
||||
#if DEBUG_VIEW == debug_ALBEDO
|
||||
FORWARD_RENDERED_COLOR.rgba = unalteredAlbedo;
|
||||
#endif
|
||||
|
||||
if(texelFetch(depthtex1, ivec2(gl_FragCoord.xy),0).r < 1.0) FORWARD_RENDERED_COLOR.a = 0.0;
|
||||
}
|
||||
Reference in New Issue
Block a user