From df19f9b4e9a67a1be40a2fdc8b7528a28dc5740f Mon Sep 17 00:00:00 2001 From: mariaBrunned Date: Tue, 11 Jun 2024 10:55:38 -0400 Subject: [PATCH] Changed in shader to not use depth texture Changed back the depth values in shader plane_fs_yt to not use the depth texture at the moment. --- modules/base/shaders/plane_fs_yt.glsl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/base/shaders/plane_fs_yt.glsl b/modules/base/shaders/plane_fs_yt.glsl index 1c2de637a2..a137849a76 100644 --- a/modules/base/shaders/plane_fs_yt.glsl +++ b/modules/base/shaders/plane_fs_yt.glsl @@ -36,7 +36,6 @@ uniform vec3 multiplyColor; uniform sampler2D depthTexture; - Fragment getFragment() { Fragment frag; if (gl_FrontFacing) { @@ -59,9 +58,11 @@ Fragment getFragment() { } frag.depth = texture(depthTexture, vs_st).r; - if (frag.depth == 0.0) { + if (frag.depth == vs_screenSpaceDepth) { discard; } + + frag.depth = vs_screenSpaceDepth; //frag.color += texture(depthTexture, vs_st);