图元:描述一个可渲染的几何体单元
Primitive
01 Syntax
Microsoft.VisualBasic.Imaging.Landscape.Gltf.Primitive
02 Properties
| Name | Overloads | Summary |
|---|---|---|
| Attributes | 1 | 顶点属性字典,Key 为语义名 (如 "POSITION", "NORMAL", "TEXCOORD_0"),Value 为 Accessor 索引 |
| IndicesAccessor | 1 | 索引 Accessor 的索引(可选,若不存在则为非索引几何体) |
| MaterialIndex | 1 | 材质索引 |
| Mode | 1 | 渲染模式:0=POINTS, 1=LINES, 2=LINE_LOOP, 3=LINE_STRIP, 4=TRIANGLES, 5=TRIANGLE_STRIP, 6=TRIANGLE_FAN |
03 Members
Attributes
顶点属性字典,Key 为语义名 (如 "POSITION", "NORMAL", "TEXCOORD_0"),Value 为 Accessor 索引
IndicesAccessor
索引 Accessor 的索引(可选,若不存在则为非索引几何体)
MaterialIndex
材质索引
Mode
渲染模式:0=POINTS, 1=LINES, 2=LINE_LOOP, 3=LINE_STRIP, 4=TRIANGLES, 5=TRIANGLE_STRIP, 6=TRIANGLE_FAN