Skip to content

@typegpu/geometry Improve line rendering APIs#2470

Open
deluksic wants to merge 1 commit into
software-mansion:mainfrom
deluksic:de/improve-line-rendering-api
Open

@typegpu/geometry Improve line rendering APIs#2470
deluksic wants to merge 1 commit into
software-mansion:mainfrom
deluksic:de/improve-line-rendering-api

Conversation

@deluksic
Copy link
Copy Markdown
Contributor

@deluksic deluksic commented May 8, 2026

Renamed and reordered the APIs a bit, and allow customization of arrow caps.

  • lineSegmentVariableWidth(vertexIndex, A, B, C, D, MAX_JOIN_COUNT) -> polylineVariableWidth(A, B, C, D, vertexIndex, MAX_JOIN_COUNT)
  • new API: lineVariableWidth(A, B, vertexIndex, MAX_JOIN_COUNT)

With new arrowCapParamsSlot, one can change arrow cap shape (length, width, slant).

image image

Copilot AI review requested due to automatic review settings May 8, 2026 17:25
@deluksic deluksic force-pushed the de/improve-line-rendering-api branch from 88e23e0 to 1b5ba58 Compare May 8, 2026 17:29
Comment thread packages/typegpu/src/core/texture/texture.ts Outdated
Comment thread packages/typegpu/src/tgsl/shaderGenerator.ts Outdated
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@deluksic deluksic force-pushed the de/improve-line-rendering-api branch 3 times, most recently from ebbd856 to ad3ef31 Compare May 11, 2026 07:59
@deluksic deluksic force-pushed the de/improve-line-rendering-api branch 2 times, most recently from 6644a14 to bdda4d6 Compare June 1, 2026 08:25
@deluksic deluksic force-pushed the de/improve-line-rendering-api branch from bdda4d6 to d68d788 Compare June 1, 2026 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants