Skip to content

Documentation / scene / panoramaToCubemap

Function: panoramaToCubemap()

panoramaToCubemap(tex, outputCubeMap): void

Defined in: libs/scene/src/utility/panorama.ts:127

Converts an equirectangular image to cubemap

Parameters

tex

Texture2D

The equirectangular image to be converted

outputCubeMap

TextureCube

Returns

void

The converted cubemap

Released under the MIT License.