EquirectangularTexture is a utility class that converts equirectangular environment {@linknode Texture2D} to a
TextureCube
.
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