Movement lines dashed Animation

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

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.

1 Like

Thanks a lot.

You’re welcome :slight_smile: :beers:

Hi,
One more question for this example:
https://jsfiddle.net/prisoner849/ofcdgtz8/
Is it possible change linewidth?

Thanks

It needs the other approach:
https://threejs.org/examples/?q=line#webgl_lines_fat

Is it possible to make line movement? Because I used it and only problem is how to make movement dashed line.