added one dimensional array acces to 2d textures