Class: MeshInstance

MeshInstance

MeshInstance allows bundling a Mesh with a Material for rendering, allowing both the geometry and materials to be shared regardless of the combination of both. MeshInstance is managed by ModelInstance internally and should never be created manually.


new MeshInstance(mesh, material)

Parameters:
Name Type Description
mesh

The Mesh providing the geometry for this instance.

material

The Material to use to render the given Mesh.

Author:
  • derschmale <http://www.derschmale.com>

Members


material

The Material used to render the Mesh.


mesh

The Mesh providing the geometry for this instance


visible

Defines whether this MeshInstance should be rendered or not.