顶点格式定义了构成顶点的属性。 顶点格式可以提供给
    
    
    
    
    
        
Geometry 以要求计算某些属性,例如只计算位置、位置和法线等。
    | Name | Type | Description | 
|---|---|---|
| options | Object | optional 如代码示例所示,该对象具有与 VertexFormat 属性相对应的布尔属性。 | 
Example:
// Create a vertex format with position and 2D texture coordinate attributes.
var format = new SuperMap3D.VertexFormat({
  position : true,
  st : true
});See:
Members
- 
    staticconstantSuperMap3D.VertexFormat.ALL : VertexFormat
- 
    
    一种不可变的顶点格式,具有属性:位置、法线、st、切线和位切线。
- 
    staticconstantSuperMap3D.VertexFormat.DEFAULT : VertexFormat
- 
    
    这是一种不可变的顶点格式,具有位置、法线和 st 属性。它与大多数外观和材质兼容;但法线和 st 属性并非总是必需的。 如果事先知道这一点,则应使用另一种顶点格式(VertexFormat)。
- 
    
    用于将对象打包到数组中的元素个数。
- 
    staticconstantSuperMap3D.VertexFormat.POSITION_AND_COLOR : VertexFormat
- 
    
    具有位置和颜色属性的不可变顶点格式。
- 
    staticconstantSuperMap3D.VertexFormat.POSITION_AND_NORMAL : VertexFormat
- 
    
    具有位置和法线属性的不可变顶点格式。这与每个实例的颜色外观(如PerInstanceColorAppearance)兼容。
- 
    staticconstantSuperMap3D.VertexFormat.POSITION_AND_ST : VertexFormat
- 
    
    具有position和st属性的不可变顶点格式。这与EllipsoidSurfaceAppearance兼容。
- 
    staticconstantSuperMap3D.VertexFormat.POSITION_NORMAL_AND_ST : VertexFormat
- 
    
    具有position、normal和st属性的不可变顶点格式。当MaterialAppearance#materialSupport是TEXTURED/code>时,这与MaterialAppearance兼容。
- 
    staticconstantSuperMap3D.VertexFormat.POSITION_ONLY : VertexFormat
- 
    
    只有位置属性的不可变顶点格式。
- 
    
    当为true时,顶点具有bitangent属性(标准化),用于切线空间效果,如凹凸映射。32位浮点。每个属性3个组成部分。 - 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 false
- 
    
    当为true时,顶点具有RGB颜色属性。8位无符号字节。每个属性3个组成部分。 - 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 false
- 
    
    当为true时,顶点有一个normal属性(normalized),这通常用于照明。32位浮点。每个属性有3个组成部分。 - 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 false
- 
    
    为true时,顶点具有三维位置属性。64 位浮点(精度)。每个属性有3个组成部分。 - 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 false
- 
    
    当为true时,顶点具有2D纹理坐标属性。32位浮点。每个属性2个组成部分。 - 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 false
- 
    
    当为true时,顶点有一个正切属性(标准化),用于切线空间效果,如凹凸映射。每个属性3个组成部分。 - 
    
    
    
    
    
    
    
    
    
    Default Value:
    
 false
Methods
- 
    staticSuperMap3D.VertexFormat.clone(vertexFormat, result) → VertexFormat
- 
    
    复制一个VertexFormat实例。Name Type Description vertexFormatVertexFormat 要复制的顶点格式。 resultVertexFormat optional 存储结果的对象。 Returns:修改后的结果参数或新的VertexFormat实例(如果没有提供)。
- 
    
    将提供的实例存储到提供的数组中。Name Type Default Description valueVertexFormat 要打包的值。 arrayArray.<Number> 要装入的数组。 startingIndexNumber 0optional 开始打包元素的数组的索引。 Returns:被装入的数组。
- 
    staticSuperMap3D.VertexFormat.unpack(array, startingIndex, result) → VertexFormat
- 
    
    从打包数组中检索实例。Name Type Default Description arrayArray.<Number> 打包数组。 startingIndexNumber 0optional 要解压缩的元素的起始索引。 resultVertexFormat optional 存储结果的对象。 Returns:修改后的结果参数或新的VertexFormat实例(如果没有提供)。
