featureId.schema.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "featureId.schema.json",
  4. "title": "Feature ID in EXT_instance_features",
  5. "type": "object",
  6. "description": "Feature IDs stored in a GPU mesh instancing attribute",
  7. "allOf": [
  8. {
  9. "$ref": "glTFProperty.schema.json"
  10. }
  11. ],
  12. "properties": {
  13. "featureCount": {
  14. "type": "integer",
  15. "minimum": 1,
  16. "description": "The number of unique features in the attribute."
  17. },
  18. "nullFeatureId": {
  19. "type": "integer",
  20. "minimum": 0,
  21. "description": "A value that indicates that no feature is associated with this instance."
  22. },
  23. "label": {
  24. "type": "string",
  25. "pattern": "^[a-zA-Z_][a-zA-Z0-9_]*$",
  26. "description": "A label assigned to this feature ID set. Labels must be alphanumeric identifiers matching the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`."
  27. },
  28. "attribute": {
  29. "description": "An attribute containing feature IDs. When this is omitted, then the feature IDs are assigned to the GPU instances by their index.",
  30. "$ref": "featureIdAttribute.schema.json"
  31. },
  32. "propertyTable": {
  33. "type": "integer",
  34. "minimum": 0,
  35. "description": "The index of the property table containing per-feature property values. Only applicable when using the `EXT_structural_metadata` extension."
  36. },
  37. "extensions": {},
  38. "extras": {}
  39. },
  40. "required": [
  41. "featureCount"
  42. ]
  43. }