lovr.data.newModelData

Creates a new ModelData from a 3D model file.

modelData = lovr.data.newModelData()

Arguments

None

Returns

NameTypeDescription
modelDataModelDataThe new ModelData.

modelData = lovr.data.newModelData(blob)

Arguments

NameTypeDescription
blobBlobThe Blob containing model to decode.

Returns

NameTypeDescription
modelDataModelDataThe new ModelData.

See also