PanoramaToCubeMapTools

Description

class PanoramaToCubeMapTools

Helper class usefull to convert panorama picture to their cubemap representation in 6 faces.

Methods

static ConvertPanoramaToCubemap(float32Array, inputWidth, inputHeight, size) CubeMapInfo

Converts a panorma stored in RGB right to left up to down format into a cubemap (6 faces).

     * @param float32Array The source data.

@return The cubemap data

Parameters

Name Type Description
float32Array Float32Array The source data.
inputWidth number The width of the input panorama.
inputHeight number