XKTMesh
Represents the usage of a XKTGeometry by an XKTEntity.
- Created by XKTModel#createEntity
- Stored in XKTEntity#meshes and XKTModel#meshesList
- Has an XKTGeometry, and an optional XKTTextureSet, both of which it can share with other XKTMeshes
- Has XKTMesh#color, XKTMesh#opacity, XKTMesh#metallic and XKTMesh#roughness PBR attributes
Member Summary
Public Members | ||
public |
RGB color of this XKTMesh. |
|
public |
The owner XKTEntity. |
|
public |
The instanced XKTGeometry. |
|
public |
The 4x4 modeling transform matrix. |
|
public |
Unique ID of this XKTMesh in XKTModel#meshes. |
|
public |
Index of this XKTMesh in XKTModel#meshesList; |
|
public |
PBR metallness of this XKTMesh. |
|
public |
Opacity of this XKTMesh. |
|
public |
PBR roughness of this XKTMesh. |
|
public |
The XKTTextureSet that defines the appearance of this XKTMesh. |
Public Members
public matrix: Number[] source
The 4x4 modeling transform matrix.
Transform is relative to the center of the XKTTile that contains this XKTMesh's XKTEntity, which is given in XKTMesh#entity.
When the XKTEntity
shares its XKTGeometrys with other XKTEntity
s, this matrix is used
to transform this XKTMesh's XKTGeometry into World-space. When this XKTMesh does not share its XKTGeometry
,
then this matrix is ignored.
public roughness: XKTTextureSet source
PBR roughness of this XKTMesh. The XKTTextureSet that defines the appearance of this XKTMesh.
public textureSet: XKTTextureSet source
The XKTTextureSet that defines the appearance of this XKTMesh.