TrailRenderer: Extracted GetAltitudeColorIndex() function