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.
This commit is contained in:
mariaBrunned
2024-06-11 10:55:38 -04:00
parent 11793d11fc
commit df19f9b4e9

View File

@@ -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);