We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When drawing lines with simple shader by using join type rect it's rendering with single color:
rect
{ color:['red', 'yellow'], join:'rect', positions: [-0,0,20,10], thickness: 10, dash: [15, 5] }
Adding aColor, bColor to the rect-vert.glsl will produce correct shading
rect-vert.glsl
attribute vec4 aColor, bColor; ... fragColor = (lineStart * aColor + lineEnd * bColor) / 255.;
also changing regl attributes to
aColor: { buffer: regl.prop('colorBuffer'), stride: 4, offset: 0, divisor: 1 }, bColor: { buffer: regl.prop('colorBuffer'), stride: 4, offset: 4, divisor: 1 }
Thank you.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When drawing lines with simple shader by using join type
rect
it's rendering with single color:Adding aColor, bColor to the
rect-vert.glsl
will produce correct shadingalso changing regl attributes to
Thank you.
The text was updated successfully, but these errors were encountered: