Constructor
new Mesh(geometry, material, ownershipOptionsopt)
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
geometry |
Geometry | Geometry, that provides vertex and index buffers for this mesh. | |
material |
Material | Material, that defines how the geometry should be shaded and rendered. | |
ownershipOptions |
MeshOwnershipOptions |
<optional> |
Ownership flags for geometry/material. |
- Source:
Classes
Members
geometry
- Source:
isDisposed
- Source:
material
- Source:
ownsGeometry
- Source:
ownsMaterial
- Source:
Methods
dispose()
Releases GPU resources owned by this mesh (geometry and/or material).
After dispose, the mesh can remain as a scene object, but it should not be rendered.
Important ownership rule, if `ownsMaterial=false`, `Mesh.dispose()` must NOT dispose the material (and its textures).
- Source: