CubeMapTexture


public final class CubeMapTexture extends Texture


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

Summary

Public methods

static final @NonNull CubeMapTexture

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

Inherited methods

From androidx.xr.scenecore.Texture
void

Disposes the given texture resource.

Public methods

borrowReflectionTexture

Added in 1.0.0-alpha04
@MainThread
public static final @NonNull CubeMapTexture borrowReflectionTexture(@NonNull Session session)

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
@NonNull Session session

The Session to use for loading the model.

Returns
@NonNull CubeMapTexture

a CubeMapTexture.