Function loadMeshLoD
-
loadMeshLoD(
engine: EngineContext,
source: MeshLoDSource,
options?: MeshLoDLoadOptions,
): Promise<MeshLoDAsset>Parameters
- engine: EngineContext
- source: MeshLoDSource
Optionaloptions: MeshLoDLoadOptions
Returns Promise<MeshLoDAsset>
Load, validate, and prepare a MeshLoD asset. Resolves only after the header, directory, required metadata, hierarchy validation, and pinned coarse pages are validated, decoded, and uploaded; fine pages stream afterwards. Invalid options reject with
MLOD_INVALID_OPTIONbefore any network work.