equirectangularToCubemap

fun equirectangularToCubemap(equirect: Texture): Texture

Converts an equirectangular image to a cubemap.

Return

the cubemap texture

Parameters

equirect

Texture to convert to a cubemap.

  • Can't be null.

  • Must be a 2d texture

  • Must have equirectangular geometry, that is width == 2*height.

  • Must be allocated with all mip levels.

  • Must be SAMPLEABLE

See also

EquirectangularToCubemap