Movement lines dashed Animation

animation

#1

Hello

Check https://jsfiddle.net/prisoner849/gfjnLakc/ and I want to make that line move like https://mattdesl.github.io/webgl-wireframes/app/ when you turn on animation. Is it possible to make.

Thanks


#2

Hi!
You can add a time uniform and use it in the fragment shader of the material:

https://jsfiddle.net/prisoner849/ofcdgtz8/

I’ve added comments to the code.


#3

Thanks a lot.


#4

You’re welcome :slight_smile: :beers: