Home > @gglib/content-loaders > loadModelOptionsToModel

loadModelOptionsToModel variable

Instantiates a Model from ModelOptions


loadModelOptionsToModel: Loader<ModelOptions, Model>


Materials are resolved as follows - instance of Material is kept as is - type of string is assumed to be a material uri - type of object is assumed to be a MaterialOptions object. Material.Options to Material loader is consulted - otherwise its an error

If the models bounding box is missing or is of zero size then the box is created by merging all bounding boxes of all meshes