duck.gltf 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. {
  2. "accessors": {
  3. "accessor_21": {
  4. "bufferView": "bufferView_29",
  5. "byteOffset": 0,
  6. "byteStride": 0,
  7. "componentType": 5123,
  8. "count": 12636,
  9. "type": "SCALAR"
  10. },
  11. "accessor_23": {
  12. "bufferView": "bufferView_30",
  13. "byteOffset": 0,
  14. "byteStride": 12,
  15. "componentType": 5126,
  16. "count": 2399,
  17. "max": [
  18. 0.961799,
  19. 1.6397,
  20. 0.539252
  21. ],
  22. "min": [
  23. -0.692985,
  24. 0.0992937,
  25. -0.613282
  26. ],
  27. "type": "VEC3"
  28. },
  29. "accessor_25": {
  30. "bufferView": "bufferView_30",
  31. "byteOffset": 28788,
  32. "byteStride": 12,
  33. "componentType": 5126,
  34. "count": 2399,
  35. "max": [
  36. 0.999599,
  37. 0.999581,
  38. 0.998436
  39. ],
  40. "min": [
  41. -0.999084,
  42. -1,
  43. -0.999832
  44. ],
  45. "type": "VEC3"
  46. },
  47. "accessor_27": {
  48. "bufferView": "bufferView_30",
  49. "byteOffset": 57576,
  50. "byteStride": 8,
  51. "componentType": 5126,
  52. "count": 2399,
  53. "max": [
  54. 0.983346,
  55. 0.980037
  56. ],
  57. "min": [
  58. 0.026409,
  59. 0.019963
  60. ],
  61. "type": "VEC2"
  62. }
  63. },
  64. "animations": {},
  65. "asset": {
  66. "generator": "collada2gltf@ceec062e3d5793f2f249f53cbd843aee382ad40b",
  67. "premultipliedAlpha": true,
  68. "profile": {
  69. "api": "WebGL",
  70. "version": "1.0.2"
  71. },
  72. "version": 1
  73. },
  74. "bufferViews": {
  75. "bufferView_29": {
  76. "buffer": "duck",
  77. "byteLength": 25272,
  78. "byteOffset": 0,
  79. "target": 34963
  80. },
  81. "bufferView_30": {
  82. "buffer": "duck",
  83. "byteLength": 76768,
  84. "byteOffset": 25272,
  85. "target": 34962
  86. }
  87. },
  88. "buffers": {
  89. "duck": {
  90. "byteLength": 102040,
  91. "type": "arraybuffer",
  92. "uri": "duck.bin"
  93. }
  94. },
  95. "cameras": {
  96. "cameraShape1": {
  97. "name": "cameraShape1",
  98. "perspective": {
  99. "aspect_ratio": 1.5,
  100. "yfov": 0.660593,
  101. "zfar": 100,
  102. "znear": 0.01
  103. },
  104. "type": "perspective"
  105. }
  106. },
  107. "images": {
  108. "file2": {
  109. "name": "file2",
  110. "uri": "duckCM.png"
  111. }
  112. },
  113. "materials": {
  114. "blinn3-fx": {
  115. "name": "blinn3",
  116. "technique": "technique0",
  117. "values": {
  118. "ambient": [
  119. 0,
  120. 0,
  121. 0,
  122. 1
  123. ],
  124. "diffuse": "texture_file2",
  125. "emission": [
  126. 0,
  127. 0,
  128. 0,
  129. 1
  130. ],
  131. "shininess": 38.4,
  132. "specular": [
  133. 0,
  134. 0,
  135. 0,
  136. 1
  137. ]
  138. }
  139. }
  140. },
  141. "meshes": {
  142. "LOD3spShape-lib": {
  143. "name": "LOD3spShape",
  144. "primitives": [
  145. {
  146. "attributes": {
  147. "NORMAL": "accessor_25",
  148. "POSITION": "accessor_23",
  149. "TEXCOORD_0": "accessor_27"
  150. },
  151. "indices": "accessor_21",
  152. "material": "blinn3-fx",
  153. "mode": 4
  154. }
  155. ]
  156. }
  157. },
  158. "nodes": {
  159. "LOD3sp": {
  160. "children": [],
  161. "matrix": [
  162. 1,
  163. 0,
  164. 0,
  165. 0,
  166. 0,
  167. 1,
  168. 0,
  169. 0,
  170. 0,
  171. 0,
  172. 1,
  173. 0,
  174. 0,
  175. 0,
  176. 0,
  177. 1
  178. ],
  179. "meshes": [
  180. "LOD3spShape-lib"
  181. ],
  182. "name": "LOD3sp"
  183. },
  184. "camera1": {
  185. "camera": "cameraShape1",
  186. "children": [],
  187. "matrix": [
  188. -0.728969,
  189. 0,
  190. -0.684547,
  191. 0,
  192. -0.425205,
  193. 0.783693,
  194. 0.452797,
  195. 0,
  196. 0.536475,
  197. 0.621148,
  198. -0.571288,
  199. 0,
  200. 4.00113,
  201. 4.63264,
  202. -4.31078,
  203. 1
  204. ],
  205. "name": "camera1"
  206. },
  207. "directionalLight1": {
  208. "children": [],
  209. "matrix": [
  210. -0.954692,
  211. 0.218143,
  212. -0.202429,
  213. 0,
  214. 0.014672,
  215. 0.713885,
  216. 0.700109,
  217. 0,
  218. 0.297235,
  219. 0.665418,
  220. -0.684741,
  221. 0,
  222. 1.48654,
  223. 1.83672,
  224. -2.92179,
  225. 1
  226. ],
  227. "name": "directionalLight1"
  228. }
  229. },
  230. "programs": {
  231. "program_0": {
  232. "attributes": [
  233. "a_normal",
  234. "a_position",
  235. "a_texcoord0"
  236. ],
  237. "fragmentShader": "duck0FS",
  238. "vertexShader": "duck0VS"
  239. }
  240. },
  241. "samplers": {
  242. "sampler_0": {
  243. "magFilter": 9729,
  244. "minFilter": 9987,
  245. "wrapS": 10497,
  246. "wrapT": 10497
  247. }
  248. },
  249. "scene": "defaultScene",
  250. "scenes": {
  251. "defaultScene": {
  252. "nodes": [
  253. "LOD3sp",
  254. "camera1",
  255. "directionalLight1"
  256. ]
  257. }
  258. },
  259. "shaders": {
  260. "duck0FS": {
  261. "type": 35632,
  262. "uri": "duck0FS.glsl"
  263. },
  264. "duck0VS": {
  265. "type": 35633,
  266. "uri": "duck0VS.glsl"
  267. }
  268. },
  269. "skins": {},
  270. "techniques": {
  271. "technique0": {
  272. "attributes": {
  273. "a_normal": "normal",
  274. "a_position": "position",
  275. "a_texcoord0": "texcoord0"
  276. },
  277. "parameters": {
  278. "ambient": {
  279. "type": 35666
  280. },
  281. "diffuse": {
  282. "type": 35678
  283. },
  284. "emission": {
  285. "type": 35666
  286. },
  287. "light0Color": {
  288. "type": 35665,
  289. "value": [
  290. 1,
  291. 1,
  292. 1
  293. ]
  294. },
  295. "light0Transform": {
  296. "node": "directionalLight1",
  297. "semantic": "MODELVIEW",
  298. "type": 35676
  299. },
  300. "modelViewMatrix": {
  301. "semantic": "MODELVIEW",
  302. "type": 35676
  303. },
  304. "normal": {
  305. "semantic": "NORMAL",
  306. "type": 35665
  307. },
  308. "normalMatrix": {
  309. "semantic": "MODELVIEWINVERSETRANSPOSE",
  310. "type": 35675
  311. },
  312. "position": {
  313. "semantic": "POSITION",
  314. "type": 35665
  315. },
  316. "projectionMatrix": {
  317. "semantic": "PROJECTION",
  318. "type": 35676
  319. },
  320. "shininess": {
  321. "type": 5126
  322. },
  323. "specular": {
  324. "type": 35666
  325. },
  326. "texcoord0": {
  327. "semantic": "TEXCOORD_0",
  328. "type": 35664
  329. }
  330. },
  331. "program": "program_0",
  332. "states": {
  333. "enable": [
  334. 2929,
  335. 2884
  336. ]
  337. },
  338. "uniforms": {
  339. "u_ambient": "ambient",
  340. "u_diffuse": "diffuse",
  341. "u_emission": "emission",
  342. "u_light0Color": "light0Color",
  343. "u_light0Transform": "light0Transform",
  344. "u_modelViewMatrix": "modelViewMatrix",
  345. "u_normalMatrix": "normalMatrix",
  346. "u_projectionMatrix": "projectionMatrix",
  347. "u_shininess": "shininess",
  348. "u_specular": "specular"
  349. }
  350. }
  351. },
  352. "textures": {
  353. "texture_file2": {
  354. "format": 6408,
  355. "internalFormat": 6408,
  356. "sampler": "sampler_0",
  357. "source": "file2",
  358. "target": 3553,
  359. "type": 5121
  360. }
  361. }
  362. }