optimization for linear interpolation; support multiple texture atlas pages in shader