misc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user