Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.27 KB

vertexAttribute.cmn.md

File metadata and controls

48 lines (39 loc) · 1.27 KB

vertexAttribute [common profile]

The vertexAttribute object describes valid properties for a single vertex.

Related:

cmn::defaultGeometrySchema, cmn::vestedGeometryParams

Properties

Property Type Description
position geometryAttribute The vertex position.
normal geometryAttribute The vertex normal.
uv0 geometryAttribute The first set of UV coordinates.
color geometryAttribute The color attribute.
region geometryAttribute The region attribute.

Note: properties in bold are required

Examples

Example: Vertex attributes for 3dObject

 {
  "position": {
    "byteOffset": 8,
    "valueType": "Float32",
    "valuesPerElement": 3
  },
  "normal": {
    "byteOffset": 2672,
    "valueType": "Float32",
    "valuesPerElement": 3
  },
  "uv0": {
    "byteOffset": 5336,
    "valueType": "Float32",
    "valuesPerElement": 2
  },
  "color": {
    "byteOffset": 7112,
    "valueType": "UInt8",
    "valuesPerElement": 4
  }
}