Skip to content

Commit

Permalink
Merge pull request #628 from lexaknyazev/1.0.1-floats
Browse files Browse the repository at this point in the history
Clarification on min/max float precision
  • Loading branch information
pjcozzi authored Jun 23, 2016
2 parents 388ecee + a911348 commit ffeca56
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions specification/2.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1256,13 +1256,17 @@ Specifies if the attribute is a scalar, vector, or matrix, and the number of ele
Maximum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be `1`, `2`, `3`, `4`, `9`, or `16`.
When `componentType` is `5126` (FLOAT) each array value must be stored as double-precision JSON number with numerical value which is equal to buffer-stored single-precision value to avoid extra runtime conversions.
* **Type**: `number[1-16]`
* **Required**: Yes
### accessor.min :white_check_mark:
Minimum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be `1`, `2`, `3`, `4`, `9`, or `16`.
When `componentType` is `5126` (FLOAT) each array value must be stored as double-precision JSON number with numerical value which is equal to buffer-stored single-precision value to avoid extra runtime conversions.
* **Type**: `number[1-16]`
* **Required**: Yes
Expand Down
4 changes: 2 additions & 2 deletions specification/2.0/schema/accessor.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"minItems" : 1,
"maxItems" : 16,
"required" : true,
"gltf_detailedDescription" : "Maximum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16."
"gltf_detailedDescription" : "Maximum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16.\n\nWhen `componentType` is `5126` (FLOAT) each array value must be stored as double-precision JSON number with numerical value which is equal to buffer-stored single-precision value to avoid extra runtime conversions."
},
"min" : {
"type" : "array",
Expand All @@ -69,7 +69,7 @@
"minItems" : 1,
"maxItems" : 16,
"required" : true,
"gltf_detailedDescription" : "Minimum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16."
"gltf_detailedDescription" : "Minimum value of each component in this attribute. Both min and max arrays have the same length. The length is determined by the value of the type property; it can be 1, 2, 3, 4, 9, or 16.\n\nWhen `componentType` is `5126` (FLOAT) each array value must be stored as double-precision JSON number with numerical value which is equal to buffer-stored single-precision value to avoid extra runtime conversions."
}
},
"additionalProperties" : false
Expand Down

0 comments on commit ffeca56

Please sign in to comment.