Companion

external object Companion(source)

Types

Link copied to clipboard
external interface FromGltfAsyncOptions

Functions

Link copied to clipboard
suspend external fun fromGltf(options: Model.Companion.FromGltfAsyncOptions): Model

Asynchronously creates a model from a glTF asset. This function returns a promise that resolves when the model is ready to render, i.e., when the external binary, image, and shader files are downloaded and the WebGL resources are created.

Link copied to clipboard