2D Dashed Line of Arbitrary Width

Hey @ambidexterich

I definitely think this is very doable in a shader using the Node Material Editor.

Here’s a small example to get you started. This gives you a moving dashed line where you can control the length of the line, the speed of the line, and the width of the line.

image

https://nme.babylonjs.com/#9Y7K25

You could probably start with this and then build from the concept to create the 90 degree turns you’re looking for. That part might be a bit tricky, but definitely doable.

Hope this helps!

1 Like