·
computeshader · drop-in viewer
ptes_init.computeShader
The index topology of the tesla plasma-arc ribbon mesh, written once: triangle strips over pairs of billboard vertices, one strip per arc polyline.
by·posted 3mo ago
What it does
ptes_init
The index topology of the tesla plasma-arc ribbon mesh, written once: triangle strips over pairs of billboard vertices, one strip per arc polyline.
The layout matches ptes_arcs and preseed/parts/p_tesla.module's constants —
10 long arcs × 64 points, 6 corona arcs × 24 points, 20 branches × 20 points —
which comes to 1148 segments at six indices each. One thread per segment,
dispatched at ceil(1148 / 128) workgroups when the arc mesh is built.
Buffers
| binding | name | role |
|---|---|---|
| 0 | idx | the ribbon's index buffer, 6 u32 per segment |
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.