Added 3D Texture support