API

Interface CubeMapInfo

CubeMap information grouping all the data for each faces as well as the cubemap size.

interface CubeMapInfo {
    back: Nullable<ArrayBufferView<ArrayBufferLike>>;
    down: Nullable<ArrayBufferView<ArrayBufferLike>>;
    format: number;
    front: Nullable<ArrayBufferView<ArrayBufferLike>>;
    gammaSpace: boolean;
    left: Nullable<ArrayBufferView<ArrayBufferLike>>;
    right: Nullable<ArrayBufferView<ArrayBufferLike>>;
    size: number;
    type: number;
    up: Nullable<ArrayBufferView<ArrayBufferLike>>;
}
Index
back: Nullable<ArrayBufferView<ArrayBufferLike>>

The pixel array for the back face. This is stored in format, left to right, up to down format.

down: Nullable<ArrayBufferView<ArrayBufferLike>>

The pixel array for the down face. This is stored in format, left to right, up to down format.

format: number

The format of the texture.

RGBA, RGB.

front: Nullable<ArrayBufferView<ArrayBufferLike>>

The pixel array for the front face. This is stored in format, left to right, up to down format.

gammaSpace: boolean

Specifies whether the texture is in gamma space.

left: Nullable<ArrayBufferView<ArrayBufferLike>>

The pixel array for the left face. This is stored in format, left to right, up to down format.

right: Nullable<ArrayBufferView<ArrayBufferLike>>

The pixel array for the right face. This is stored in format, left to right, up to down format.

size: number

The size of the cubemap stored.

Each faces will be size * size pixels.

type: number

The type of the texture data.

UNSIGNED_INT, FLOAT.

up: Nullable<ArrayBufferView<ArrayBufferLike>>

The pixel array for the up face. This is stored in format, left to right, up to down format.