API

Type Alias LayerAndFaceIndex

Type used to define layer and face indices for multi-render target rendering scenarios.

type LayerAndFaceIndex = {
    faceIndex?: number;
    layerIndex?: number;
    targetIndex: number;
}
Index
faceIndex?: number

Index of the cube face to set (optional - not used if the texture is not a cube texture)

layerIndex?: number

Index of the layer to set (optional - not used if the texture is not an array or a 3D texture)

targetIndex: number

Index of the texture to update