Guest User

glTF-Batched

a guest
Feb 23rd, 2017
183
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "accessors":{
  3. "accessor_48":{
  4. "bufferView":"bufferView_63",
  5. "byteOffset":0,
  6. "byteStride":2,
  7. "componentType":5123,
  8. "count":72144,
  9. "max":[
  10. 7632
  11. ],
  12. "min":[
  13. 0
  14. ],
  15. "type":"SCALAR"
  16. },
  17. "accessor_51":{
  18. "bufferView":"bufferView_63",
  19. "byteOffset":144288,
  20. "byteStride":2,
  21. "componentType":5123,
  22. "count":99483,
  23. "max":[
  24. 25078
  25. ],
  26. "min":[
  27. 0
  28. ],
  29. "type":"SCALAR"
  30. },
  31. "accessor_54":{
  32. "bufferView":"bufferView_63",
  33. "byteOffset":343254,
  34. "byteStride":2,
  35. "componentType":5123,
  36. "count":106887,
  37. "max":[
  38. 47772
  39. ],
  40. "min":[
  41. 0
  42. ],
  43. "type":"SCALAR"
  44. },
  45. "accessor_57":{
  46. "bufferView":"bufferView_63",
  47. "byteOffset":557028,
  48. "byteStride":2,
  49. "componentType":5123,
  50. "count":6081,
  51. "max":[
  52. 60477
  53. ],
  54. "min":[
  55. 0
  56. ],
  57. "type":"SCALAR"
  58. },
  59. "accessor_59":{
  60. "bufferView":"bufferView_64",
  61. "byteOffset":0,
  62. "byteStride":12,
  63. "componentType":5126,
  64. "count":61497,
  65. "max":[
  66. 144.52,
  67. 132.801,
  68. 25.677
  69. ],
  70. "min":[
  71. 62.365,
  72. 50.646,
  73. 3.109
  74. ],
  75. "type":"VEC3"
  76. },
  77. "accessor_61":{
  78. "bufferView":"bufferView_64",
  79. "byteOffset":737964,
  80. "byteStride":8,
  81. "componentType":5126,
  82. "count":61497,
  83. "max":[
  84. 0.998,
  85. 1
  86. ],
  87. "min":[
  88. -0.041,
  89. 0
  90. ],
  91. "type":"VEC2"
  92. },
  93. "accessor_batchId":{
  94. "bufferView":"bufferView_batchId",
  95. "byteOffset":0,
  96. "byteStride":2,
  97. "componentType":5123,
  98. "count":61497,
  99. "type":"SCALAR",
  100. "min":[
  101. 0
  102. ],
  103. "max":[
  104. 1
  105. ]
  106. }
  107. },
  108. "animations":{
  109.  
  110. },
  111. "asset":{
  112. "generator":"collada2gltf@f8f6279915175e9d2cc525531660ac439c114fac",
  113. "premultipliedAlpha":true,
  114. "profile":{
  115. "api":"WebGL",
  116. "version":"1.0.2"
  117. },
  118. "version":"1.0.1"
  119. },
  120. "bufferViews":{
  121. "binary_images_atlas-image-0":{
  122. "buffer":"KHR_binary_glTF",
  123. "byteLength":2190568,
  124. "byteOffset":6991140
  125. },
  126. "binary_images_atlas-image-1":{
  127. "buffer":"KHR_binary_glTF",
  128. "byteLength":2666420,
  129. "byteOffset":4324720
  130. },
  131. "binary_images_atlas-image-2":{
  132. "buffer":"KHR_binary_glTF",
  133. "byteLength":2096476,
  134. "byteOffset":2228244
  135. },
  136. "binary_images_atlas-image-3":{
  137. "buffer":"KHR_binary_glTF",
  138. "byteLength":366851,
  139. "byteOffset":1861393
  140. },
  141. "binary_shader_d0030FS":{
  142. "buffer":"KHR_binary_glTF",
  143. "byteLength":428,
  144. "byteOffset":1860965
  145. },
  146. "binary_shader_d0030VS":{
  147. "buffer":"KHR_binary_glTF",
  148. "byteLength":336,
  149. "byteOffset":1860629
  150. },
  151. "bufferView_63":{
  152. "buffer":"KHR_binary_glTF",
  153. "byteLength":569192,
  154. "byteOffset":61497,
  155. "target":34963
  156. },
  157. "bufferView_64":{
  158. "buffer":"KHR_binary_glTF",
  159. "byteLength":1229940,
  160. "byteOffset":630689,
  161. "target":34962
  162. },
  163. "bufferView_batchId":{
  164. "buffer":"binary_glTF",
  165. "byteLength":61497,
  166. "byteOffset":0,
  167. "target":34962
  168. }
  169. },
  170. "buffers":{
  171. "KHR_binary_glTF":{
  172. "byteLength":9120211,
  173. "uri":""
  174. }
  175. },
  176. "extensionsUsed":[
  177. "KHR_binary_glTF"
  178. ],
  179. "images":{
  180. "atlas-image-0":{
  181. "extensions":{
  182. "KHR_binary_glTF":{
  183. "bufferView":"binary_images_atlas-image-0",
  184. "height":9999,
  185. "mimeType":"image/i-dont-know",
  186. "width":9999
  187. }
  188. },
  189. "name":"atlas-image-0"
  190. },
  191. "atlas-image-1":{
  192. "extensions":{
  193. "KHR_binary_glTF":{
  194. "bufferView":"binary_images_atlas-image-1",
  195. "height":9999,
  196. "mimeType":"image/i-dont-know",
  197. "width":9999
  198. }
  199. },
  200. "name":"atlas-image-1"
  201. },
  202. "atlas-image-2":{
  203. "extensions":{
  204. "KHR_binary_glTF":{
  205. "bufferView":"binary_images_atlas-image-2",
  206. "height":9999,
  207. "mimeType":"image/i-dont-know",
  208. "width":9999
  209. }
  210. },
  211. "name":"atlas-image-2"
  212. },
  213. "atlas-image-3":{
  214. "extensions":{
  215. "KHR_binary_glTF":{
  216. "bufferView":"binary_images_atlas-image-3",
  217. "height":9999,
  218. "mimeType":"image/i-dont-know",
  219. "width":9999
  220. }
  221. },
  222. "name":"atlas-image-3"
  223. }
  224. },
  225. "materials":{
  226. "effect-0":{
  227. "name":"material-0",
  228. "technique":"technique0",
  229. "values":{
  230. "ambient":[
  231. 0,
  232. 0,
  233. 0,
  234. 1
  235. ],
  236. "diffuse":"texture_atlas-image-0",
  237. "emission":[
  238. 0,
  239. 0,
  240. 0,
  241. 1
  242. ],
  243. "shininess":20,
  244. "specular":[
  245. 0,
  246. 0,
  247. 0,
  248. 1
  249. ]
  250. }
  251. },
  252. "effect-1":{
  253. "name":"material-1",
  254. "technique":"technique0",
  255. "values":{
  256. "ambient":[
  257. 0,
  258. 0,
  259. 0,
  260. 1
  261. ],
  262. "diffuse":"texture_atlas-image-1",
  263. "emission":[
  264. 0,
  265. 0,
  266. 0,
  267. 1
  268. ],
  269. "shininess":20,
  270. "specular":[
  271. 0,
  272. 0,
  273. 0,
  274. 1
  275. ]
  276. }
  277. },
  278. "effect-2":{
  279. "name":"material-2",
  280. "technique":"technique0",
  281. "values":{
  282. "ambient":[
  283. 0,
  284. 0,
  285. 0,
  286. 1
  287. ],
  288. "diffuse":"texture_atlas-image-2",
  289. "emission":[
  290. 0,
  291. 0,
  292. 0,
  293. 1
  294. ],
  295. "shininess":20,
  296. "specular":[
  297. 0,
  298. 0,
  299. 0,
  300. 1
  301. ]
  302. }
  303. },
  304. "effect-3":{
  305. "name":"material-3",
  306. "technique":"technique0",
  307. "values":{
  308. "ambient":[
  309. 0,
  310. 0,
  311. 0,
  312. 1
  313. ],
  314. "diffuse":"texture_atlas-image-3",
  315. "emission":[
  316. 0,
  317. 0,
  318. 0,
  319. 1
  320. ],
  321. "shininess":20,
  322. "specular":[
  323. 0,
  324. 0,
  325. 0,
  326. 1
  327. ]
  328. }
  329. }
  330. },
  331. "meshes":{
  332. "mesh1-geometry":{
  333. "name":"mesh1-geometry",
  334. "primitives":[
  335. {
  336. "attributes":{
  337. "POSITION":"accessor_59",
  338. "TEXCOORD_0":"accessor_61",
  339. "BATCHID":"accessor_batchId"
  340. },
  341. "indices":"accessor_48",
  342. "material":"effect-0",
  343. "mode":4
  344. },
  345. {
  346. "attributes":{
  347. "POSITION":"accessor_59",
  348. "TEXCOORD_0":"accessor_61",
  349. "BATCHID":"accessor_batchId"
  350. },
  351. "indices":"accessor_51",
  352. "material":"effect-1",
  353. "mode":4
  354. },
  355. {
  356. "attributes":{
  357. "POSITION":"accessor_59",
  358. "TEXCOORD_0":"accessor_61",
  359. "BATCHID":"accessor_batchId"
  360. },
  361. "indices":"accessor_54",
  362. "material":"effect-2",
  363. "mode":4
  364. },
  365. {
  366. "attributes":{
  367. "POSITION":"accessor_59",
  368. "TEXCOORD_0":"accessor_61",
  369. "BATCHID":"accessor_batchId"
  370. },
  371. "indices":"accessor_57",
  372. "material":"effect-3",
  373. "mode":4
  374. }
  375. ]
  376. }
  377. },
  378. "nodes":{
  379. "mesh1":{
  380. "children":[
  381.  
  382. ],
  383. "meshes":[
  384. "mesh1-geometry"
  385. ],
  386. "name":"mesh1"
  387. },
  388. "node_1":{
  389. "children":[
  390. "mesh1"
  391. ],
  392. "matrix":[
  393. 1,
  394. 0,
  395. 0,
  396. 0,
  397. 0,
  398. 0,
  399. -1,
  400. 0,
  401. 0,
  402. 1,
  403. 0,
  404. 0,
  405. 0,
  406. 0,
  407. 0,
  408. 1
  409. ],
  410. "name":"Y_UP_Transform"
  411. }
  412. },
  413. "programs":{
  414. "program_0":{
  415. "attributes":[
  416. "a_position",
  417. "a_texcoord0"
  418. ],
  419. "fragmentShader":"d0030FS",
  420. "vertexShader":"d0030VS"
  421. }
  422. },
  423. "samplers":{
  424. "sampler_0":{
  425. "magFilter":9729,
  426. "minFilter":9729,
  427. "wrapS":10497,
  428. "wrapT":10497
  429. }
  430. },
  431. "scene":"defaultScene",
  432. "scenes":{
  433. "defaultScene":{
  434. "nodes":[
  435. "node_1"
  436. ]
  437. }
  438. },
  439. "shaders":{
  440. "d0030FS":{
  441. "extensions":{
  442. "KHR_binary_glTF":{
  443. "bufferView":"binary_shader_d0030FS"
  444. }
  445. },
  446. "type":35632
  447. },
  448. "d0030VS":{
  449. "extensions":{
  450. "KHR_binary_glTF":{
  451. "bufferView":"binary_shader_d0030VS"
  452. }
  453. },
  454. "type":35633
  455. }
  456. },
  457. "skins":{
  458.  
  459. },
  460. "techniques":{
  461. "technique0":{
  462. "attributes":{
  463. "a_position":"position",
  464. "a_texcoord0":"texcoord0",
  465. "a_batchId":"batchId"
  466. },
  467. "parameters":{
  468. "ambient":{
  469. "type":35666
  470. },
  471. "diffuse":{
  472. "type":35678
  473. },
  474. "emission":{
  475. "type":35666
  476. },
  477. "modelViewMatrix":{
  478. "semantic":"MODELVIEW",
  479. "type":35676
  480. },
  481. "position":{
  482. "semantic":"POSITION",
  483. "type":35665
  484. },
  485. "projectionMatrix":{
  486. "semantic":"PROJECTION",
  487. "type":35676
  488. },
  489. "shininess":{
  490. "type":5126
  491. },
  492. "specular":{
  493. "type":35666
  494. },
  495. "texcoord0":{
  496. "semantic":"TEXCOORD_0",
  497. "type":35664
  498. },
  499. "batchId":{
  500. "semantic":"BATCHID",
  501. "type":5126
  502. }
  503. },
  504. "program":"program_0",
  505. "states":{
  506. "enable":[
  507. 2929,
  508. 2884
  509. ]
  510. },
  511. "uniforms":{
  512. "u_diffuse":"diffuse",
  513. "u_emission":"emission",
  514. "u_modelViewMatrix":"modelViewMatrix",
  515. "u_projectionMatrix":"projectionMatrix",
  516. "u_shininess":"shininess"
  517. }
  518. }
  519. },
  520. "textures":{
  521. "texture_atlas-image-0":{
  522. "format":6408,
  523. "internalFormat":6408,
  524. "sampler":"sampler_0",
  525. "source":"atlas-image-0",
  526. "target":3553,
  527. "type":5121
  528. },
  529. "texture_atlas-image-1":{
  530. "format":6408,
  531. "internalFormat":6408,
  532. "sampler":"sampler_0",
  533. "source":"atlas-image-1",
  534. "target":3553,
  535. "type":5121
  536. },
  537. "texture_atlas-image-2":{
  538. "format":6408,
  539. "internalFormat":6408,
  540. "sampler":"sampler_0",
  541. "source":"atlas-image-2",
  542. "target":3553,
  543. "type":5121
  544. },
  545. "texture_atlas-image-3":{
  546. "format":6408,
  547. "internalFormat":6408,
  548. "sampler":"sampler_0",
  549. "source":"atlas-image-3",
  550. "target":3553,
  551. "type":5121
  552. }
  553. }
  554. }
RAW Paste Data