new MeshInstance(mesh, material)
Parameters:
Name | Type | Description |
---|---|---|
mesh |
Mesh | The |
material |
Material | The |
Properties:
Name | Type | Description |
---|---|---|
castShadows |
boolean | Defines whether or not this MeshInstance should cast shadows. |
mesh |
The |
|
material |
The |
|
mesh |
Mesh | The |
material |
Material | The |
skeleton |
Skeleton | The |
skeletonMatrices |
Array | Texture2D | The skeleton matrices of the current skeleton pose. |
morphPose |
MorphPose | The |
lodRangeStart |
number | The minimum distance to render this MeshInstance. Can be used with other MeshInstances to enable LOD support, or singly for pop-in or impostors. |
lodRangeEnd |
number | The maximum distance to render this MeshInstance. Can be used with other MeshInstances to enable LOD support, or singly for pop-in or impostors. |