readGltfGraphics Function
Produce a RenderGraphic from a glTF asset suitable for use in view decorations.
readGltfGraphics(args: ReadGltfGraphicsArgs): Promise<RenderGraphic | undefined>
note Support for the full glTF 2.0 specification is currently a work in progress. If a particular glTF asset fails to load and/or display properly, please submit an issue.
see Example decorator for an example of a decorator that reads and displays a glTF asset.
Parameter | Type | Description |
---|---|---|
args | ReadGltfGraphicsArgs |
Returns - Promise<RenderGraphic | undefined>
a graphic produced from the glTF asset's default scene, or undefined
if a graphic could not be produced from the asset.
Defined in
- core/frontend/src/tile/GltfReader.ts Line 1699
Last Updated: 20 June, 2023