EquirectangularToCubemap

Converts an equirectangular image to a cubemap.

The input equirectangular texture must:

  • Be a 2D texture (width == 2 * height)

  • Have all mip levels allocated

  • Have SAMPLEABLE usage

Parameters

context

Converts an equirectangular image to a cubemap.

The input equirectangular texture must:

  • Be a 2D texture (width == 2 * height)

  • Have all mip levels allocated

  • Have SAMPLEABLE usage

Parameters

context

Converts an equirectangular image to a cubemap.

The input equirectangular texture must:

  • Be a 2D texture (width == 2 * height)

  • Have all mip levels allocated

  • Have SAMPLEABLE usage

Parameters

context

Converts an equirectangular image to a cubemap.

The input equirectangular texture must:

  • Be a 2D texture (width == 2 * height)

  • Have all mip levels allocated

  • Have SAMPLEABLE usage

Parameters

context

Converts an equirectangular image to a cubemap.

The input equirectangular texture must:

  • Be a 2D texture (width == 2 * height)

  • Have all mip levels allocated

  • Have SAMPLEABLE usage

Parameters

context

Constructors

Link copied to clipboard
actual constructor(context: IBLPrefilterContext)
expect constructor(context: IBLPrefilterContext)
actual constructor(context: IBLPrefilterContext)
actual constructor(context: IBLPrefilterContext)
actual constructor(context: IBLPrefilterContext)

Functions

Link copied to clipboard
actual fun destroy()

Destroys all GPU resources created during initialization.

expect fun destroy()

Destroys all GPU resources created during initialization.

actual fun destroy()

Destroys all GPU resources created during initialization.

actual fun destroy()

Destroys all GPU resources created during initialization.

actual fun destroy()

Destroys all GPU resources created during initialization.

Link copied to clipboard
actual fun run(equirect: Texture): Texture

Converts the given equirectangular Texture to a cubemap.

expect fun run(equirect: Texture): Texture

Converts the given equirectangular Texture to a cubemap.

actual fun run(equirect: Texture): Texture

Converts the given equirectangular Texture to a cubemap.

actual fun run(equirect: Texture): Texture

Converts the given equirectangular Texture to a cubemap.

actual fun run(equirect: Texture): Texture

Converts the given equirectangular Texture to a cubemap.