I’m using a custom shader in p5.js that works well on filled polygons but doesn’t affect the magenta lines outlining them. I’m looking for a way to apply the shader to these lines as well. Here’s my code:
How can I modify this to include the magenta line outlines in the shader effect?
Lines are rendered with a separate shader (line shader).
Quick research showed me this line
and
so I assume that you have to define uStrokeWeight in your line shader (specifically for rendering lines) for the shader to be recognized as a line shader. But as a disclaimer I haven’t tested anything.
You may want to use the default line shader as a starting point: