DamagedHelmetGpuInstancing.gltf 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. {
  2. "extensionsUsed" : [
  3. "EXT_mesh_gpu_instancing"
  4. ],
  5. "extensionsRequired" : [
  6. "EXT_mesh_gpu_instancing"
  7. ],
  8. "accessors" : [
  9. {
  10. "bufferView" : 0,
  11. "componentType" : 5123,
  12. "count" : 46356,
  13. "max" : [
  14. 14555
  15. ],
  16. "min" : [
  17. 0
  18. ],
  19. "type" : "SCALAR"
  20. },
  21. {
  22. "bufferView" : 1,
  23. "componentType" : 5126,
  24. "count" : 14556,
  25. "max" : [
  26. 0.9424954056739807,
  27. 0.8128451108932495,
  28. 0.900973916053772
  29. ],
  30. "min" : [
  31. -0.9474585652351379,
  32. -1.18715500831604,
  33. -0.9009949564933777
  34. ],
  35. "type" : "VEC3"
  36. },
  37. {
  38. "bufferView" : 2,
  39. "componentType" : 5126,
  40. "count" : 14556,
  41. "max" : [
  42. 1.0,
  43. 1.0,
  44. 1.0
  45. ],
  46. "min" : [
  47. -1.0,
  48. -1.0,
  49. -1.0
  50. ],
  51. "type" : "VEC3"
  52. },
  53. {
  54. "bufferView" : 3,
  55. "componentType" : 5126,
  56. "count" : 14556,
  57. "max" : [
  58. 0.9999759793281555,
  59. 1.998665988445282
  60. ],
  61. "min" : [
  62. 0.002448640065267682,
  63. 1.0005531199858524
  64. ],
  65. "type" : "VEC2"
  66. },
  67. {
  68. "bufferView" : 4,
  69. "componentType" : 5126,
  70. "count" : 64,
  71. "type" : "VEC3",
  72. "max" : [
  73. 8.0,
  74. 8.0,
  75. 0.0
  76. ],
  77. "min" : [
  78. 0.0,
  79. 0.0,
  80. 0.0
  81. ]
  82. },
  83. {
  84. "bufferView" : 5,
  85. "componentType" : 5126,
  86. "count" : 64,
  87. "type" : "VEC4"
  88. },
  89. {
  90. "bufferView" : 6,
  91. "componentType" : 5126,
  92. "count" : 64,
  93. "type" : "VEC3",
  94. "max" : [
  95. 0.125,
  96. 0.125,
  97. 0.125
  98. ],
  99. "min" : [
  100. 0.0,
  101. 0.0,
  102. 0.0
  103. ]
  104. }
  105. ],
  106. "asset" : {
  107. "generator" : "Khronos Blender glTF 2.0 exporter",
  108. "version" : "2.0"
  109. },
  110. "bufferViews" : [
  111. {
  112. "buffer" : 0,
  113. "byteLength" : 92712,
  114. "byteOffset" : 0,
  115. "target" : 34963
  116. },
  117. {
  118. "buffer" : 0,
  119. "byteLength" : 174672,
  120. "byteOffset" : 92712,
  121. "target" : 34962
  122. },
  123. {
  124. "buffer" : 0,
  125. "byteLength" : 174672,
  126. "byteOffset" : 267384,
  127. "target" : 34962
  128. },
  129. {
  130. "buffer" : 0,
  131. "byteLength" : 116448,
  132. "byteOffset" : 442056,
  133. "target" : 34962
  134. },
  135. {
  136. "buffer": 1,
  137. "byteOffset": 0,
  138. "byteLength": 768,
  139. "name": "gpuInstancingTranslation"
  140. },
  141. {
  142. "buffer": 2,
  143. "byteOffset": 0,
  144. "byteLength": 1024,
  145. "name": "gpuInstancingRotation"
  146. },
  147. {
  148. "buffer": 3,
  149. "byteOffset": 0,
  150. "byteLength": 768,
  151. "name": "gpuInstancingScale"
  152. }
  153. ],
  154. "buffers" : [
  155. {
  156. "byteLength" : 558504,
  157. "uri" : "../glTF/DamagedHelmet.bin"
  158. },
  159. {
  160. "uri": "GpuInstancingTranslation.bin",
  161. "byteLength": 768
  162. },
  163. {
  164. "uri": "GpuInstancingRotation.bin",
  165. "byteLength": 1024
  166. },
  167. {
  168. "uri": "GpuInstancingScale.bin",
  169. "byteLength": 768
  170. }
  171. ],
  172. "images" : [
  173. {
  174. "uri" : "../glTF/Default_albedo.jpg"
  175. },
  176. {
  177. "uri" : "../glTF/Default_metalRoughness.jpg"
  178. },
  179. {
  180. "uri" : "../glTF/Default_emissive.jpg"
  181. },
  182. {
  183. "uri" : "../glTF/Default_AO.jpg"
  184. },
  185. {
  186. "uri" : "../glTF/Default_normal.jpg"
  187. }
  188. ],
  189. "materials" : [
  190. {
  191. "emissiveFactor" : [
  192. 1.0,
  193. 1.0,
  194. 1.0
  195. ],
  196. "emissiveTexture" : {
  197. "index" : 2
  198. },
  199. "name" : "Material_MR",
  200. "normalTexture" : {
  201. "index" : 4
  202. },
  203. "occlusionTexture" : {
  204. "index" : 3
  205. },
  206. "pbrMetallicRoughness" : {
  207. "baseColorTexture" : {
  208. "index" : 0
  209. },
  210. "metallicRoughnessTexture" : {
  211. "index" : 1
  212. }
  213. }
  214. }
  215. ],
  216. "meshes" : [
  217. {
  218. "name" : "mesh_helmet_LP_13930damagedHelmet",
  219. "primitives" : [
  220. {
  221. "attributes" : {
  222. "NORMAL" : 2,
  223. "POSITION" : 1,
  224. "TEXCOORD_0" : 3
  225. },
  226. "indices" : 0,
  227. "material" : 0
  228. }
  229. ]
  230. }
  231. ],
  232. "nodes" : [
  233. {
  234. "extensions" : {
  235. "EXT_mesh_gpu_instancing" : {
  236. "attributes" : {
  237. "TRANSLATION" : 4,
  238. "ROTATION" : 5,
  239. "SCALE" : 6
  240. }
  241. }
  242. },
  243. "mesh" : 0,
  244. "name" : "node_damagedHelmet_-6514",
  245. "rotation" : [
  246. 0.7071068286895752,
  247. 0.0,
  248. -0.0,
  249. 0.7071068286895752
  250. ]
  251. }
  252. ],
  253. "samplers" : [
  254. {}
  255. ],
  256. "scene" : 0,
  257. "scenes" : [
  258. {
  259. "name" : "Scene",
  260. "nodes" : [
  261. 0
  262. ]
  263. }
  264. ],
  265. "textures" : [
  266. {
  267. "sampler" : 0,
  268. "source" : 0
  269. },
  270. {
  271. "sampler" : 0,
  272. "source" : 1
  273. },
  274. {
  275. "sampler" : 0,
  276. "source" : 2
  277. },
  278. {
  279. "sampler" : 0,
  280. "source" : 3
  281. },
  282. {
  283. "sampler" : 0,
  284. "source" : 4
  285. }
  286. ]
  287. }