load camera from gltf
This commit is contained in:
parent
eabbc338e1
commit
916e68443f
2 changed files with 52 additions and 8 deletions
|
|
@ -12,7 +12,8 @@
|
|||
"name":"Scene",
|
||||
"nodes":[
|
||||
0,
|
||||
1
|
||||
1,
|
||||
2
|
||||
]
|
||||
}
|
||||
],
|
||||
|
|
@ -26,6 +27,21 @@
|
|||
300
|
||||
]
|
||||
},
|
||||
{
|
||||
"camera":0,
|
||||
"name":"Camera",
|
||||
"rotation":[
|
||||
-0.4850793778896332,
|
||||
0.011384948156774044,
|
||||
0.006316010374575853,
|
||||
0.874373197555542
|
||||
],
|
||||
"translation":[
|
||||
22.192241668701172,
|
||||
739.938720703125,
|
||||
580.302978515625
|
||||
]
|
||||
},
|
||||
{
|
||||
"mesh":1,
|
||||
"name":"Plane",
|
||||
|
|
@ -41,15 +57,27 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"cameras":[
|
||||
{
|
||||
"name":"Camera",
|
||||
"perspective":{
|
||||
"aspectRatio":1,
|
||||
"yfov":0.6911112070083618,
|
||||
"zfar":2000,
|
||||
"znear":0.10000000149011612
|
||||
},
|
||||
"type":"perspective"
|
||||
}
|
||||
],
|
||||
"materials":[
|
||||
{
|
||||
"doubleSided":true,
|
||||
"name":"Material",
|
||||
"pbrMetallicRoughness":{
|
||||
"baseColorFactor":[
|
||||
0.800000011920929,
|
||||
0.800000011920929,
|
||||
0.800000011920929,
|
||||
0.8003232479095459,
|
||||
0.052682049572467804,
|
||||
0.03800351545214653,
|
||||
1
|
||||
],
|
||||
"metallicFactor":0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue