{"p":"","h":{"iv":"ROXSYW+cfvEbFHu5","at":"ocxplSQjdRC3tXEtB/9/wg=="}}

kandid

@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
| ------+
| - +
| - +
| - +
| - +
|------+

0
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Replies