Namespace: EquirectangularTexture

EquirectangularTexture

EquirectangularTexture is a utility class that converts equirectangular environment {@linknode Texture2D} to a TextureCube.

Author:
  • derschmale <http://www.derschmale.com>

Methods


<static> toCube(source [, size] [, generateMipmaps] [, target])

Convert an equirectangular environment {@linknode Texture2D} to a TextureCube.

Parameters:
Name Type Argument Description
source

The source {@linknode Texture2D}

size <optional>

The size of the target cube map.

generateMipmaps <optional>

Whether or not a mip chain should be generated.

target <optional>

An optional target TextureCube to contain the converted data.

Returns:

The environment map in a TextureCube

Type
TextureCube