Use flags to render sections of connected texture. Room for improvement, corners need thinking about, but good enough for now.