TwoBoxes.gltf 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. {
  2. "accessors": {
  3. "accessor_21": {
  4. "bufferView": "bufferView_29",
  5. "byteOffset": 0,
  6. "byteStride": 0,
  7. "componentType": 5123,
  8. "count": 36,
  9. "type": "SCALAR"
  10. },
  11. "accessor_23": {
  12. "bufferView": "bufferView_30",
  13. "byteOffset": 0,
  14. "byteStride": 12,
  15. "componentType": 5126,
  16. "count": 24,
  17. "max": [
  18. 0.5,
  19. 0.5,
  20. 0.5
  21. ],
  22. "min": [
  23. -0.5,
  24. -0.5,
  25. -0.5
  26. ],
  27. "type": "VEC3"
  28. },
  29. "accessor_25": {
  30. "bufferView": "bufferView_30",
  31. "byteOffset": 288,
  32. "byteStride": 12,
  33. "componentType": 5126,
  34. "count": 24,
  35. "max": [
  36. 1,
  37. 1,
  38. 1
  39. ],
  40. "min": [
  41. -1,
  42. -1,
  43. -1
  44. ],
  45. "type": "VEC3"
  46. }
  47. },
  48. "animations": {},
  49. "asset": {
  50. "generator": "collada2gltf@027f74366341d569dea42e9a68b7104cc3892054",
  51. "premultipliedAlpha": true,
  52. "profile": {
  53. "api": "WebGL",
  54. "version": "1.0.2"
  55. },
  56. "version": "1.0"
  57. },
  58. "bufferViews": {
  59. "bufferView_29": {
  60. "buffer": "Box",
  61. "byteLength": 72,
  62. "byteOffset": 0,
  63. "target": 34963
  64. },
  65. "bufferView_30": {
  66. "buffer": "Box",
  67. "byteLength": 576,
  68. "byteOffset": 72,
  69. "target": 34962
  70. }
  71. },
  72. "buffers": {
  73. "Box": {
  74. "byteLength": 648,
  75. "type": "arraybuffer",
  76. "uri": "Box.bin"
  77. }
  78. },
  79. "materials": {
  80. "Effect-Red": {
  81. "name": "Red",
  82. "technique": "technique0",
  83. "values": {
  84. "diffuse": [
  85. 0.8,
  86. 0,
  87. 0,
  88. 1
  89. ],
  90. "shininess": 256,
  91. "specular": [
  92. 0.2,
  93. 0.2,
  94. 0.2,
  95. 1
  96. ]
  97. }
  98. }
  99. },
  100. "meshes": {
  101. "Geometry-mesh002": {
  102. "name": "Mesh",
  103. "primitives": [
  104. {
  105. "attributes": {
  106. "NORMAL": "accessor_25",
  107. "POSITION": "accessor_23"
  108. },
  109. "indices": "accessor_21",
  110. "material": "Effect-Red",
  111. "mode": 4
  112. }
  113. ]
  114. }
  115. },
  116. "nodes": {
  117. "BottomBox": {
  118. "children": [],
  119. "matrix": [
  120. 1,
  121. 0,
  122. 0,
  123. 0,
  124. 0,
  125. 1,
  126. 0,
  127. 0,
  128. 0,
  129. 0,
  130. 1,
  131. 0,
  132. 0,
  133. 0,
  134. 0,
  135. 1
  136. ],
  137. "meshes": [
  138. "Geometry-mesh002"
  139. ],
  140. "name": "BottomBox"
  141. },
  142. "TopBox": {
  143. "children": [],
  144. "matrix": [
  145. 0.5,
  146. 0,
  147. 0,
  148. 0,
  149. 0,
  150. 0.5,
  151. 0,
  152. 0,
  153. 0,
  154. 0,
  155. 0.5,
  156. 0,
  157. 0,
  158. 0,
  159. 1,
  160. 1
  161. ],
  162. "meshes": [
  163. "Geometry-mesh002"
  164. ],
  165. "name": "TopBox"
  166. },
  167. "node_1": {
  168. "children": [
  169. "BottomBox",
  170. "TopBox"
  171. ],
  172. "matrix": [
  173. 1,
  174. 0,
  175. 0,
  176. 0,
  177. 0,
  178. 0,
  179. -1,
  180. 0,
  181. 0,
  182. 1,
  183. 0,
  184. 0,
  185. 0,
  186. 0,
  187. 0,
  188. 1
  189. ],
  190. "name": "Y_UP_Transform"
  191. }
  192. },
  193. "programs": {
  194. "program_0": {
  195. "attributes": [
  196. "a_normal",
  197. "a_position"
  198. ],
  199. "fragmentShader": "Box0FS",
  200. "vertexShader": "Box0VS"
  201. }
  202. },
  203. "scene": "defaultScene",
  204. "scenes": {
  205. "defaultScene": {
  206. "nodes": [
  207. "node_1"
  208. ]
  209. }
  210. },
  211. "shaders": {
  212. "Box0FS": {
  213. "type": 35632,
  214. "uri": "Box0FS.glsl"
  215. },
  216. "Box0VS": {
  217. "type": 35633,
  218. "uri": "Box0VS.glsl"
  219. }
  220. },
  221. "skins": {},
  222. "techniques": {
  223. "technique0": {
  224. "attributes": {
  225. "a_normal": "normal",
  226. "a_position": "position"
  227. },
  228. "parameters": {
  229. "diffuse": {
  230. "type": 35666
  231. },
  232. "modelViewMatrix": {
  233. "semantic": "MODELVIEW",
  234. "type": 35676
  235. },
  236. "normal": {
  237. "semantic": "NORMAL",
  238. "type": 35665
  239. },
  240. "normalMatrix": {
  241. "semantic": "MODELVIEWINVERSETRANSPOSE",
  242. "type": 35675
  243. },
  244. "position": {
  245. "semantic": "POSITION",
  246. "type": 35665
  247. },
  248. "projectionMatrix": {
  249. "semantic": "PROJECTION",
  250. "type": 35676
  251. },
  252. "shininess": {
  253. "type": 5126
  254. },
  255. "specular": {
  256. "type": 35666
  257. }
  258. },
  259. "program": "program_0",
  260. "states": {
  261. "enable": [
  262. 2929,
  263. 2884
  264. ]
  265. },
  266. "uniforms": {
  267. "u_diffuse": "diffuse",
  268. "u_modelViewMatrix": "modelViewMatrix",
  269. "u_normalMatrix": "normalMatrix",
  270. "u_projectionMatrix": "projectionMatrix",
  271. "u_shininess": "shininess",
  272. "u_specular": "specular"
  273. }
  274. }
  275. }
  276. }