mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
fixed z fighting for GUI elements
This commit is contained in:
@@ -12,6 +12,6 @@ void main(){
|
||||
float x, y;
|
||||
x = (aVert.x + pos.x - screen.x * .5) / (screen.x * .5);
|
||||
y = (screen.y * .5 - (aVert.y + pos.y)) / (screen.y * .5);
|
||||
gl_Position = vec4(x, y, pos.z + aVert.z, 1);
|
||||
gl_Position = vec4(x, y, -(pos.z + aVert.z), 1);
|
||||
texCoords = aTexCoords;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user