How would you texture a road

I’m creating a racing game and I was wondering if you could texture a road so there would be yellow line in the middle of the road (all the time, even when the road curves)

I think you have to model various angle roads :confused:

There are scripts/assets to do this automatically. But for my game I have made a grid system of road parts. So I have one for straight roads, one for intersections, one for turns, dead ends, etc. Then I have one material/texture which all of these parts use so they can all be statically batched and just use one draw call per grid part/mesh. It’s a nice and light system for mobile. Those automatic ones can probably work too, and are in all likelyhood a lot less rigid. Depends on your game I guess.