# Manipulate vertices in Line2Segments / Line2Node material in compute shader

**URL:** <https://discourse.threejs.org/t/manipulate-vertices-in-line2segments-line2node-material-in-compute-shader/86984>\
**Category:** Questions\
**Tags:** linegeometry, line2, compute-shaders, tsl\
**Created:** [September 14, 2025, 8:06pm UTC](https://discourse.threejs.org/t/manipulate-vertices-in-line2segments-line2node-material-in-compute-shader/86984 "2025-09-14T20:06:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![met](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/met/32/63210_2.png) [@met](https://discourse.threejs.org/u/met)\
**Post date:** [September 14, 2025, 8:06pm UTC](https://discourse.threejs.org/t/manipulate-vertices-in-line2segments-line2node-material-in-compute-shader/86984/1 "2025-09-14T20:06:44Z")

</div>

I’m learning webGPU, and I am trying to animate vertices of a line geometry using compute shader logic and the beautiful feature of TSL!

I read a few topics here, in particular [this one](https://discourse.threejs.org/t/line2nodematerial-and-vertexnode/84773) .  
I set up everything properly and I can render lines.  
I can’t animate them, nor using nodes and writing a custom Fn into the vertexNode, nor trying to mess up with geometry attributes.  
Anyone can give me a hint on what’s the right way? I’m a bit lost.  
If you need, I think you might use the codepen found in the thread I shared. I’m using the very same logic (with an update shader in the loop).  
Thanks in advance! ☹
