duck.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  1. {
  2. "accessors": {
  3. "attribute_23": {
  4. "bufferView": "bufferView_29",
  5. "byteOffset": 0,
  6. "byteStride": 12,
  7. "count": 2399,
  8. "max": [
  9. 96.1799,
  10. 163.97,
  11. 53.9252
  12. ],
  13. "min": [
  14. -69.2985,
  15. 9.92937,
  16. -61.3282
  17. ],
  18. "type": 35665
  19. },
  20. "attribute_25": {
  21. "bufferView": "bufferView_29",
  22. "byteOffset": 28788,
  23. "byteStride": 12,
  24. "count": 2399,
  25. "max": [
  26. 0.999599,
  27. 0.999581,
  28. 0.998436
  29. ],
  30. "min": [
  31. -0.999084,
  32. -1,
  33. -0.999832
  34. ],
  35. "type": 35665
  36. },
  37. "attribute_27": {
  38. "bufferView": "bufferView_29",
  39. "byteOffset": 57576,
  40. "byteStride": 8,
  41. "count": 2399,
  42. "max": [
  43. 0.983346,
  44. 0.980037
  45. ],
  46. "min": [
  47. 0.026409,
  48. 0.019963
  49. ],
  50. "type": 35664
  51. },
  52. "indices_21": {
  53. "bufferView": "bufferView_30",
  54. "byteOffset": 0,
  55. "count": 12636,
  56. "type": 5123
  57. }
  58. },
  59. "animations": {},
  60. "asset": {
  61. "generator": "collada2gltf@75061f683116dc0ffdad48f33c226e933132e98c"
  62. },
  63. "bufferViews": {
  64. "bufferView_29": {
  65. "buffer": "duck",
  66. "byteLength": 76768,
  67. "byteOffset": 0,
  68. "target": 34962
  69. },
  70. "bufferView_30": {
  71. "buffer": "duck",
  72. "byteLength": 25272,
  73. "byteOffset": 76768,
  74. "target": 34963
  75. },
  76. "bufferView_31": {
  77. "buffer": "duck",
  78. "byteLength": 0,
  79. "byteOffset": 102040
  80. }
  81. },
  82. "buffers": {
  83. "duck": {
  84. "byteLength": 102040,
  85. "path": "duck.bin",
  86. "type": "arraybuffer"
  87. }
  88. },
  89. "cameras": {
  90. "camera_0": {
  91. "perspective": {
  92. "aspect_ratio": 1.5,
  93. "yfov": 37.8492,
  94. "zfar": 10000,
  95. "znear": 1
  96. },
  97. "type": "perspective"
  98. }
  99. },
  100. "images": {
  101. "image_0": {
  102. "path": "duckCM.png"
  103. }
  104. },
  105. "lights": {
  106. "directionalLightShape1-lib": {
  107. "directional": {
  108. "color": [
  109. 1,
  110. 1,
  111. 1
  112. ]
  113. },
  114. "type": "directional"
  115. }
  116. },
  117. "materials": {
  118. "blinn3-fx": {
  119. "instanceTechnique": {
  120. "technique": "technique1",
  121. "values": {
  122. "ambient": [
  123. 0,
  124. 0,
  125. 0,
  126. 1
  127. ],
  128. "diffuse": "texture_image_0",
  129. "emission": [
  130. 0,
  131. 0,
  132. 0,
  133. 1
  134. ],
  135. "shininess": 38.4,
  136. "specular": [
  137. 0,
  138. 0,
  139. 0,
  140. 1
  141. ]
  142. }
  143. },
  144. "name": "blinn3"
  145. }
  146. },
  147. "meshes": {
  148. "LOD3spShape-lib": {
  149. "name": "LOD3spShape",
  150. "primitives": [
  151. {
  152. "attributes": {
  153. "NORMAL": "attribute_25",
  154. "POSITION": "attribute_23",
  155. "TEXCOORD_0": "attribute_27"
  156. },
  157. "indices": "indices_21",
  158. "material": "blinn3-fx",
  159. "primitive": 4
  160. }
  161. ]
  162. }
  163. },
  164. "nodes": {
  165. "LOD3sp": {
  166. "children": [],
  167. "matrix": [
  168. 1,
  169. 0,
  170. 0,
  171. 0,
  172. 0,
  173. 1,
  174. 0,
  175. 0,
  176. 0,
  177. 0,
  178. 1,
  179. 0,
  180. 0,
  181. 0,
  182. 0,
  183. 1
  184. ],
  185. "meshes": [
  186. "LOD3spShape-lib"
  187. ],
  188. "name": "LOD3sp"
  189. },
  190. "camera1": {
  191. "camera": "camera_0",
  192. "children": [],
  193. "matrix": [
  194. -0.728969,
  195. 0,
  196. -0.684547,
  197. 0,
  198. -0.425205,
  199. 0.783693,
  200. 0.452797,
  201. 0,
  202. 0.536475,
  203. 0.621148,
  204. -0.571288,
  205. 0,
  206. 400.113,
  207. 463.264,
  208. -431.078,
  209. 1
  210. ],
  211. "name": "camera1"
  212. },
  213. "directionalLight1": {
  214. "children": [],
  215. "light": "directionalLightShape1-lib",
  216. "matrix": [
  217. -0.954692,
  218. 0.218143,
  219. -0.202428,
  220. 0,
  221. 0.0146721,
  222. 0.713885,
  223. 0.700109,
  224. 0,
  225. 0.297235,
  226. 0.665418,
  227. -0.684741,
  228. 0,
  229. 148.654,
  230. 183.672,
  231. -292.179,
  232. 1
  233. ],
  234. "name": "directionalLight1"
  235. }
  236. },
  237. "profile": "WebGL 1.0.2",
  238. "programs": {
  239. "program_0": {
  240. "attributes": [
  241. "a_normal",
  242. "a_position",
  243. "a_texcoord0"
  244. ],
  245. "fragmentShader": "duck0FS",
  246. "vertexShader": "duck0VS"
  247. }
  248. },
  249. "samplers": {
  250. "sampler_0": {
  251. "magFilter": 9729,
  252. "minFilter": 9987,
  253. "wrapS": 10497,
  254. "wrapT": 10497
  255. }
  256. },
  257. "scene": "defaultScene",
  258. "scenes": {
  259. "defaultScene": {
  260. "nodes": [
  261. "LOD3sp",
  262. "camera1",
  263. "directionalLight1"
  264. ]
  265. }
  266. },
  267. "shaders": {
  268. "duck0FS": {
  269. "path": "duck0FS.glsl"
  270. },
  271. "duck0VS": {
  272. "path": "duck0VS.glsl"
  273. }
  274. },
  275. "skins": {},
  276. "techniques": {
  277. "technique1": {
  278. "parameters": {
  279. "ambient": {
  280. "type": 35666
  281. },
  282. "diffuse": {
  283. "type": 35678
  284. },
  285. "emission": {
  286. "type": 35666
  287. },
  288. "light0Color": {
  289. "type": 35665,
  290. "value": [
  291. 1,
  292. 1,
  293. 1
  294. ]
  295. },
  296. "light0Transform": {
  297. "source": "directionalLight1",
  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. "pass": "defaultPass",
  332. "passes": {
  333. "defaultPass": {
  334. "details": {
  335. "commonProfile": {
  336. "extras": {
  337. "doubleSided": false
  338. },
  339. "lightingModel": "Blinn",
  340. "parameters": [
  341. "ambient",
  342. "diffuse",
  343. "emission",
  344. "light0Color",
  345. "light0Transform",
  346. "modelViewMatrix",
  347. "normalMatrix",
  348. "projectionMatrix",
  349. "shininess",
  350. "specular"
  351. ],
  352. "texcoordBindings": {
  353. "diffuse": "TEXCOORD_0"
  354. }
  355. },
  356. "type": "COLLADA-1.4.1/commonProfile"
  357. },
  358. "instanceProgram": {
  359. "attributes": {
  360. "a_normal": "normal",
  361. "a_position": "position",
  362. "a_texcoord0": "texcoord0"
  363. },
  364. "program": "program_0",
  365. "uniforms": {
  366. "u_ambient": "ambient",
  367. "u_diffuse": "diffuse",
  368. "u_emission": "emission",
  369. "u_light0Color": "light0Color",
  370. "u_light0Transform": "light0Transform",
  371. "u_modelViewMatrix": "modelViewMatrix",
  372. "u_normalMatrix": "normalMatrix",
  373. "u_projectionMatrix": "projectionMatrix",
  374. "u_shininess": "shininess",
  375. "u_specular": "specular"
  376. }
  377. },
  378. "states": {
  379. "blendEnable": 0,
  380. "cullFaceEnable": 1,
  381. "depthMask": 1,
  382. "depthTestEnable": 1
  383. }
  384. }
  385. }
  386. }
  387. },
  388. "textures": {
  389. "texture_image_0": {
  390. "format": 6408,
  391. "internalFormat": 6408,
  392. "sampler": "sampler_0",
  393. "source": "image_0",
  394. "target": 3553
  395. }
  396. }
  397. }