This commit is contained in:
mcrcortex
2025-08-10 09:44:20 +10:00
parent 2956872970
commit 11f7041df0
9 changed files with 30 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ float projDepth(vec3 pos) {
void main() {
float depth = texture(depthTex, UV.xy).r;
if (depth == 0.0f) {
if (depth == 0.0f || depth == 1.0) {
discard;
}

View File

@@ -2,6 +2,6 @@
out vec2 UV;
void main() {
gl_Position = vec4(vec2(gl_VertexID&1, (gl_VertexID>>1)&1) * 4 - 1, 1f, 1);
gl_Position = vec4(vec2(gl_VertexID&1, (gl_VertexID>>1)&1) * 4 - 1, 1.0f, 1);
UV = gl_Position.xy*0.5+0.5;
}