Added 2d texture support.