5c2983f510
* Added bone binding to whole mesh and not only set vertices. + Also added missed setting of the animation count. + Removed double ; on one line * Added more of the gltf sample models https://github.com/KhronosGroup/glTF-Sample-Models We need to make it working for all of them. * Binding to initial bind pose added. * Fix cube disappearing bug because lerpPercent could be Inf. * Fixed for rigged figure also
118 lines
2.1 KiB
JSON
118 lines
2.1 KiB
JSON
{
|
|
"scene" : 0,
|
|
"scenes" : [
|
|
{
|
|
"nodes" : [ 0 ]
|
|
}
|
|
],
|
|
|
|
"nodes" : [
|
|
{
|
|
"mesh" : 0,
|
|
"rotation" : [ 0.0, 0.0, 0.0, 1.0 ]
|
|
}
|
|
],
|
|
|
|
"meshes" : [
|
|
{
|
|
"primitives" : [ {
|
|
"attributes" : {
|
|
"POSITION" : 1
|
|
},
|
|
"indices" : 0
|
|
} ]
|
|
}
|
|
],
|
|
|
|
"animations": [
|
|
{
|
|
"samplers" : [
|
|
{
|
|
"input" : 2,
|
|
"interpolation" : "LINEAR",
|
|
"output" : 3
|
|
}
|
|
],
|
|
"channels" : [ {
|
|
"sampler" : 0,
|
|
"target" : {
|
|
"node" : 0,
|
|
"path" : "rotation"
|
|
}
|
|
} ]
|
|
}
|
|
],
|
|
|
|
"buffers" : [
|
|
{
|
|
"uri" : "data:application/octet-stream;base64,AAABAAIAAAAAAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAA=",
|
|
"byteLength" : 44
|
|
},
|
|
{
|
|
"uri" : "data:application/octet-stream;base64,AAAAAAAAgD4AAAA/AABAPwAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAD0/TQ/9P00PwAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAPT9ND/0/TS/AAAAAAAAAAAAAAAAAACAPw==",
|
|
"byteLength" : 100
|
|
}
|
|
],
|
|
"bufferViews" : [
|
|
{
|
|
"buffer" : 0,
|
|
"byteOffset" : 0,
|
|
"byteLength" : 6,
|
|
"target" : 34963
|
|
},
|
|
{
|
|
"buffer" : 0,
|
|
"byteOffset" : 8,
|
|
"byteLength" : 36,
|
|
"target" : 34962
|
|
},
|
|
{
|
|
"buffer" : 1,
|
|
"byteOffset" : 0,
|
|
"byteLength" : 100
|
|
}
|
|
],
|
|
"accessors" : [
|
|
{
|
|
"bufferView" : 0,
|
|
"byteOffset" : 0,
|
|
"componentType" : 5123,
|
|
"count" : 3,
|
|
"type" : "SCALAR",
|
|
"max" : [ 2 ],
|
|
"min" : [ 0 ]
|
|
},
|
|
{
|
|
"bufferView" : 1,
|
|
"byteOffset" : 0,
|
|
"componentType" : 5126,
|
|
"count" : 3,
|
|
"type" : "VEC3",
|
|
"max" : [ 1.0, 1.0, 0.0 ],
|
|
"min" : [ 0.0, 0.0, 0.0 ]
|
|
},
|
|
{
|
|
"bufferView" : 2,
|
|
"byteOffset" : 0,
|
|
"componentType" : 5126,
|
|
"count" : 5,
|
|
"type" : "SCALAR",
|
|
"max" : [ 1.0 ],
|
|
"min" : [ 0.0 ]
|
|
},
|
|
{
|
|
"bufferView" : 2,
|
|
"byteOffset" : 20,
|
|
"componentType" : 5126,
|
|
"count" : 5,
|
|
"type" : "VEC4",
|
|
"max" : [ 0.0, 0.0, 1.0, 1.0 ],
|
|
"min" : [ 0.0, 0.0, 0.0, -0.707 ]
|
|
}
|
|
],
|
|
|
|
"asset" : {
|
|
"version" : "2.0"
|
|
}
|
|
|
|
} |