loadCubemap

fun loadCubemap(data: CubemapImageData, session: Session? = Session.active): Cubemap(source)

Loads a cubemap from the given CubemapImageData and returns the generated Cubemap instance. This function handles writing the six faces of the cubemap and can optionally use a specified rendering session.

Return

The created Cubemap instance initialized with the provided image data.

Parameters

data

The cubemap image data containing parameters such as width, format, type, mipmaps, and the actual image data for each face of the cubemap.

session

The rendering session in which the cubemap will be created and managed. If omitted, the active session will be used.

fun loadCubemap(fileOrUrl: String, formatHint: ImageFileFormat? = ImageFileFormat.DDS, session: Session? = Session.active): Cubemap(source)