Used 2D textures to simulate 1D textures.