KhronosGroup/glTF

Description of morph targets in mesh.primitive.schema.json is misleading

UX3D-haertl opened this issue · 0 comments

"description": "A plain JSON object specifying attributes displacements in a morph target, where each key corresponds to one of the three supported attribute semantic (`POSITION`, `NORMAL`, or `TANGENT`) and each value is the index of the accessor containing the attribute displacements' data."

A plain JSON object specifying attributes displacements in a morph target, where each key corresponds to one of the three supported attribute semantic (POSITION, NORMAL, or TANGENT) and each value is the index of the accessor containing the attribute displacements' data.

Morphing texcoord and color attributes is supported by the spec and it is also implemented in sample viewer.
Reading the description one could think this is not the case. This was also pointed out by #1363 (comment) but was not changed.

The wording is probably the reason why glTF-Validator reports an error for using texcoord or color as morph targets.
Related issue:
KhronosGroup/glTF-Validator#213