fixed corner pin bug on gles

This commit is contained in:
itsmattkc
2018-11-13 11:23:22 +11:00
parent b3bcddf96b
commit bd1bc7136c
+3 -3
View File
@@ -48,14 +48,14 @@ void main() {
vTexCoord = gl_MultiTexCoord0.xy;
} else {
vec2 pos;
if (gl_VertexID == 0) { // top left
pos = p2;
} else if (gl_VertexID == 1) { // top right
pos = p3;
} else if (gl_VertexID == 2) { // bottom right
pos = p1;
} else { // bottom left (3)
} else if (gl_VertexID == 3) { // bottom left
pos = p0;
}
@@ -63,5 +63,5 @@ void main() {
b1 = p1 - p0;
b2 = p2 - p0;
b3 = p0 - p1 - p2 + p3;
}
}
}