How can I create a gradient-colored strip that can move along a specified path?

WX20230501-215504@2x

I want to create a gradient-colored strip that can move in a loop along a road.like this.thanks

Hello and welcome to the Babylon.js forum!

You could try animating texture UV coordinates. Examples can be found here:

3 Likes

This is an example for a radial gradient background colorization

gradient back | Babylon.js Playground (babylonjs.com)

I found a gradient example with lines
Lines System Examples | Babylon.js Playground (babylonjs.com)

Hey, i have the same question. How to create gradient which moving on the mesh which is NOT linear. I think answer of @docEdub is ok for linear meshes like in a screenshot of start post but uv moving is not ok for non linear meshes for example circle or, which i want to create, veins of lava which periodically changes his bright during its length and this bright flash is moving from initial position to the end. Is it possible to do without node editor shaders?

You could use Material Plugins instead of using the node editor. Have you tried that already?

Would GreasedLineMesh and GreasedLineTools be useful?