CubeMapTexture


class CubeMapTexture : Texture


CubeMapTexture represents a cube map texture that can be used with materials.

Summary

Public companion functions

CubeMapTexture

Returns a CubeMapTexture which represents the lighting environment as seen by the system.

Inherited functions

From androidx.xr.scenecore.Texture
open Unit

Disposes the given texture resource.

Public companion functions

borrowReflectionTexture

Added in 1.0.0-alpha04
@MainThread
fun borrowReflectionTexture(session: Session): CubeMapTexture

Returns a CubeMapTexture which represents the lighting environment as seen by the system. Currently, if the passthrough is enabled, the reflection texture that will be returned will correspond to the environment lighting that is currently set but covered by the passthrough. If an error occurs, this method will throw an exception.

This method must be called from the main thread. * https://developer.android.com/guide/components/processes-and-threads

Parameters
session: Session

The Session to use for loading the model.

Returns
CubeMapTexture

a CubeMapTexture.