Texture Cube Asset
A Texture Cube asset is a cubemap: six square images that form the faces of a cube. Cubemaps are sampled with a direction instead of texture coordinates. They are mostly used for sky boxes, but materials can also reference them through TextureCube parameters (see MATERIALPARAMETER).
Importing
.dds, .hdr and .exr files can be imported as cubemaps. .hdr and .exr files are imported as HDR Skybox, which sets Usage to HDR. .dds files are imported as Skybox, which sets Usage to Color. If the file name contains cubemap or skybox, the cubemap import is preferred over the other texture imports.
Input Layouts
With a single input file, the following layouts are supported:
- Cubemap file: A DDS file that already contains six faces is used as is.
- Vertical cross: The faces are arranged in a cross that is three faces wide and four faces high.
- Horizontal cross: The faces are arranged in a cross that is four faces wide and three faces high.
- Spherical (equirectangular) panorama: Any other image is treated as a spherical mapping and is projected onto the six faces. The width of the image must be a multiple of 4. This is the typical layout of
.hdrand.exrsky images.
With six input files, each file provides one face, in the order +X, -X, +Y, -Y, +Z, -Z. All six images must be square, have the same power-of-two resolution and use the same format.
Asset Properties
The properties Usage, Mipmaps, Compression, HdrExposureBias and Filtering behave as for 2D textures.
Channel Mapping: Whether the cubemap has an alpha channel, and whether it is built from one or from six input files:
- RGB - Single Input / RGBA - Single Input: One input file in one of the layouts described above.
- RGB - 6 Inputs / RGBA - 6 Inputs: One input file per face.
Input 1 - 6: The input files. Only the first one is used for the single input mappings.