Rendered half-width AT ONE ENDPOINT, in pixels — TSL twin of GLSL's
luxarLineEndPixelWidth.
The rendered width is otherwise PER-VERTEX (it interpolates width and view
depth at the vertex's own t), and both cap varyings are flat, whose value
comes from one provoking vertex. Gating the join on a per-vertex width
therefore lets a segment whose ends straddle the gate resolve its cap from
whichever corner provokes — and WebGL provokes from the last vertex while
WGSL provokes from the first. Evaluated at an END this is segment-constant,
and equals the per-vertex value exactly at the corner that consumes it, so
the geometry is unchanged.
isOrtho is the build-time graph variant, so only one branch is emitted.
lineScale is resY·|P11| (GLSL luxarLineScale), the same scale in both
projections.
Rendered half-width AT ONE ENDPOINT, in pixels — TSL twin of GLSL's
luxarLineEndPixelWidth.The rendered width is otherwise PER-VERTEX (it interpolates width and view depth at the vertex's own t), and both cap varyings are
flat, whose value comes from one provoking vertex. Gating the join on a per-vertex width therefore lets a segment whose ends straddle the gate resolve its cap from whichever corner provokes — and WebGL provokes from the last vertex while WGSL provokes from the first. Evaluated at an END this is segment-constant, and equals the per-vertex value exactly at the corner that consumes it, so the geometry is unchanged.isOrthois the build-time graph variant, so only one branch is emitted.lineScaleis resY·|P11| (GLSLluxarLineScale), the same scale in both projections.