{"p":"","h":{"iv":"ROXSYW+cfvEbFHu5","at":"ocxplSQjdRC3tXEtB/9/wg=="}}
kandid
- 2y ·
-
Public·
-
chaos.social
@madskjeldgaard Another approach would be to insert a geometry shader into the pipeline between the vector shader and the fragment shader. The geometry shader receives the two end points of the straight line. And creates 2 triangles. So that a long and small rectangle is formed along the line.
Input 1 line
+------+
Output 2 triangles
| ------+
| - +
| - +
| - +
| - +
|------+