Private
constructorPrivate
_boundingPrivate
Readonly
materialsReadonly
nameName of the model, usually the filename without the extension
Private
Readonly
partsPrivate
programPrivate
triGet list of all material names in this model used by all parts
Get list of parts in this model, names are the material names
Get number of parts in this model
Simple getter for the number of triangles in the model
Render is used draw this model, this is called from the Instance that wraps this renderable.
Optional
materialOverride: MaterialOptional
programOverride: ProgramInfoCan modify & override an existing named material
Name of the material to modify
New material to use
Static
parseParse an OBJ file & MTL material libraries, returns a new Model
The path to the OBJ file
The name of the OBJ file
Apply texture filtering to textures, default: true
Flip the Y axis of textures as they are loaded, default: false
Flip the UV coords of the model in the vertex/mesh data, default: true
Static
parseParse a custom model from a ModelBuilder, this is used to build models in code
The ModelBuilder to parse
The name of the model
Generated using TypeDoc
Holds a 3D model, as a list of parts, each with a material Plus map of named materials