SpatialEnvironment.SpatialEnvironmentPreference


public final class SpatialEnvironment.SpatialEnvironmentPreference


Represents the preferred spatial environment for the application.

The SpatialEnvironmentPreference can consist of image-based lighting and geometry. Setting the image-based lighting to null will result in no lighting for the scene, and setting the geometry to null will result in black void environment.

Summary

Public constructors

SpatialEnvironmentPreference(
    ImageBasedLightingAsset imageBasedLightingAsset,
    GltfModel geometry
)

Creates a preference for the SpatialEnvironment.

Public methods

boolean
equals(Object other)
final GltfModel

The preferred geometry for the environment based on a pre-loaded GltfModel.

final ImageBasedLightingAsset

The preferred image-based lighting for the environment based on a pre-loaded ImageBasedLightingAsset.

int

Public constructors

SpatialEnvironmentPreference

Added in 1.0.0-alpha16
public SpatialEnvironmentPreference(
    ImageBasedLightingAsset imageBasedLightingAsset,
    GltfModel geometry
)

Creates a preference for the SpatialEnvironment.

Parameters
ImageBasedLightingAsset imageBasedLightingAsset

The preferred image-based lighting for the environment.

GltfModel geometry

The preferred geometry for the environment.

Public methods

equals

public boolean equals(Object other)

getGeometry

Added in 1.0.0-alpha16
public final GltfModel getGeometry()

The preferred geometry for the environment based on a pre-loaded GltfModel. The geometry can include a skybox texture for the horizon of the environment.

getImageBasedLightingAsset

Added in 1.0.0-alpha16
public final ImageBasedLightingAsset getImageBasedLightingAsset()

The preferred image-based lighting for the environment based on a pre-loaded ImageBasedLightingAsset. This lighting contributes to the overall illumination and reflections within the scene.

hashCode

public int hashCode()