Added support for cube map textures.