Fix terrain shader flickering