ExrImage
class ExrImage
Represents an EXR image in SceneCore.
EXR images are used by the SpatialEnvironment for drawing skyboxes.
Summary
Public companion functions |
|
|---|---|
suspend ExrImage |
@MainThreadPublic factory for an ExrImage, asynchronously loading a preprocessed skybox from a |
suspend ExrImage |
@MainThreadPublic factory for an ExrImage, asynchronously loading a preprocessed skybox from a |
Public companion functions
createFromZip
@MainThread
suspend fun createFromZip(session: Session, path: Path): ExrImage
Public factory for an ExrImage, asynchronously loading a preprocessed skybox from a Path relative to the application's assets/ folder.
The input .zip file should contain the preprocessed image-based lighting (IBL) data, typically generated from an .exr or .hdr environment map using a tool like Filament's cmgen. See: https://github.com/google/filament/tree/main/tools/cmgen
| Parameters | |
|---|---|
session: Session |
The |
path: Path |
The Path of the preprocessed |
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if |
createFromZip
@MainThread
suspend fun createFromZip(session: Session, uri: Uri): ExrImage
Public factory for an ExrImage, asynchronously loading a preprocessed skybox from a Uri.
The input .zip file should contain the preprocessed image-based lighting (IBL) data, typically generated from an .exr or .hdr environment map using a tool like Filament's cmgen. See: https://github.com/google/filament/tree/main/tools/cmgen
| Parameters | |
|---|---|
session: Session |
The |
uri: Uri |
The Uri of the preprocessed |
| Throws | |
|---|---|
kotlin.IllegalArgumentException |
if the Uri does not specify a |