diff options
| author | Omar Rizwan <omar@omar.website> | 2023-09-21 02:52:04 +0000 |
|---|---|---|
| committer | Omar Rizwan <omar@omar.website> | 2023-09-21 02:52:04 +0000 |
| commit | dca67964e03709237a888f97ff3481f5e1cd579c (patch) | |
| tree | 076669d94c946b3c3731693e5988e28764b55741 /virtual-programs | |
| parent | Gpu: Fix w. Works on table! (diff) | |
| download | folk-dca67964e03709237a888f97ff3481f5e1cd579c.tar.gz folk-dca67964e03709237a888f97ff3481f5e1cd579c.zip | |
display: Fix line vertices
Diffstat (limited to 'virtual-programs')
| -rw-r--r-- | virtual-programs/display.folk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virtual-programs/display.folk b/virtual-programs/display.folk index b0fe3ec1..dc0fb2ea 100644 --- a/virtual-programs/display.folk +++ b/virtual-programs/display.folk @@ -131,7 +131,7 @@ On process { vec2 vertices[4] = vec2[4]( min(from, to) - thickness, vec2(max(from.x, to.x) + thickness, min(from.y, to.y) - thickness), - vec2(min(from.y, to.y) - thickness, max(from.y, to.y) + thickness), + vec2(min(from.x, to.x) - thickness, max(from.y, to.y) + thickness), max(from, to) + thickness ); return vertices[gl_VertexIndex]; |
