This is a little tool I made to simplify the creation of the 64 Rail textures Manic Digger needs.
The program takes 5 base textures (sample files included) and does all transformations as needed.
Result is written to the subfolder rails.
Generates Rail textures for use with Manic Digger
Source Code for the RailGenerator Utility