Stratkit Railroad Module¶
Provides support for the railroad building feature. This feature enables increased movement speed for armies on connections of provinces that have one or more railroad feature buildings. Railroad connections can be visually distinguished from regular connections and different levels of the feature value.
The railroad feature value is assumed to be in the range of 0.0 (none) to 1.0 (full).
The texture used for connections has to contain all visual variations arranged in a vertical strip. The shader needs to know the number of variations and the current value of the feature to select the correct part of the texture. To control the displayed variation the shader uses the "TypeIndex" uniform which is set though the ConnectionTypeIndex
component.