World space trail textures

We are working on a new texturing mode for lines and trails, which “pins” their texture UVs, so that textures on existing parts of the trail do not change when new points are added, or old points are removed.

New features include:

  • Implemented a new “Static” Texture Mode for TrailRenderer, Particle System Trails, so that the texture mapping does not move when new points are added or old points are removed
  • Implemented the same mode for Line Renderer so that the texture mapping is based on the length of the line in world space
  • All applicable renderers contain a new setting to specify the texture mapping repeat rate, which is available for all texturing modes. The repeat rate can be controlled in both the U and V directions.

Grab the build from here: https://beta.unity3d.com/download/d5b19e10461c/public_download.html

And give us your feedback here: World space trail textures

15 Likes

I’ve just uploaded a new build, that implements this feature for Particle System Trails too, and addresses the bugs reported in the first version.

I’ve updated the links above, but it’ll take a few minutes for the build to become visible.

3 Likes

Another new version, this time adding V direction scaling too.

2 Likes