vega / vega-webgpu

WebGPU Renderer Extension for Vega
6 stars 2 forks source link

Add joints for line mark #6

Open lsh opened 3 years ago

lsh commented 3 years ago

Currently strokes have no cap at joints which becomes apparently on thicker strokes.

KaNaDaAT commented 8 months ago

In terms of performance, it would be ideal if this calculation could also be done in the shader. You would always need the line before and after. This can also be solved by making all lines accessible from the shader. See: https://github.com/KaNaDaAT/vega-webgpu/blob/main/src/shaders/line.wgsl