Hackweek Feb 2024
Posted 11 months ago
When I was making the particle sprite shader that used a geometry shader, it got me interested in being able to draw lines that way too. Would it be possible to draw lines in a shader by passing just position vertices.
attribute 'contenteditable' not allowedattribute 'blocktype' not allowed
It broke my brain for a long while. I was trying to do it in screen space for some reason, so my maths was all fucked. But eventually, it clicked.
attribute 'contenteditable' not allowedattribute 'blocktype' not allowed
I managed to detect the ends and add nice end caps.
attribute 'contenteditable' not allowedattribute 'blocktype' not allowed
I got the shader creating extra geometry to add curves too. This feels great, but I didn't have the time or brains to stitch the areas together, so it has gaps.

attribute 'contenteditable' not allowedattribute 'blocktype' not allowed