TextureTransformTest.gltf 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. {
  2. "accessors": [
  3. {
  4. "bufferView": 0,
  5. "componentType": 5126,
  6. "count": 4,
  7. "type": "VEC3",
  8. "max": [
  9. 0.5,
  10. 0.5,
  11. 0.0
  12. ],
  13. "min": [
  14. -0.5,
  15. -0.5,
  16. 0.0
  17. ],
  18. "name": "Positions"
  19. },
  20. {
  21. "bufferView": 1,
  22. "componentType": 5126,
  23. "count": 4,
  24. "type": "VEC2",
  25. "name": "UV0"
  26. },
  27. {
  28. "bufferView": 2,
  29. "componentType": 5126,
  30. "count": 4,
  31. "type": "VEC2",
  32. "name": "UV1"
  33. },
  34. {
  35. "bufferView": 3,
  36. "componentType": 5125,
  37. "count": 6,
  38. "type": "SCALAR",
  39. "name": "Indices"
  40. }
  41. ],
  42. "asset": {
  43. "version": "2.0"
  44. },
  45. "buffers": [
  46. {
  47. "uri": "TextureTransformTest.bin",
  48. "byteLength": 136
  49. }
  50. ],
  51. "bufferViews": [
  52. {
  53. "buffer": 0,
  54. "byteLength": 48,
  55. "name": "Positions"
  56. },
  57. {
  58. "buffer": 0,
  59. "byteOffset": 48,
  60. "byteLength": 32,
  61. "name": "UV0"
  62. },
  63. {
  64. "buffer": 0,
  65. "byteOffset": 80,
  66. "byteLength": 32,
  67. "name": "UV1"
  68. },
  69. {
  70. "buffer": 0,
  71. "byteOffset": 112,
  72. "byteLength": 24,
  73. "name": "Indices"
  74. }
  75. ],
  76. "extensionsUsed": [
  77. "KHR_texture_transform"
  78. ],
  79. "images": [
  80. {
  81. "uri": "UV.png"
  82. },
  83. {
  84. "uri": "Arrow.png"
  85. },
  86. {
  87. "uri": "Correct.png"
  88. },
  89. {
  90. "uri": "NotSupported.png"
  91. },
  92. {
  93. "uri": "Error.png"
  94. }
  95. ],
  96. "materials": [
  97. {
  98. "name": "Offset U",
  99. "pbrMetallicRoughness": {
  100. "baseColorTexture": {
  101. "index": 0,
  102. "extensions": {
  103. "KHR_texture_transform": {
  104. "offset": [
  105. 0.5,
  106. 0.0
  107. ]
  108. }
  109. }
  110. },
  111. "metallicFactor": 0
  112. }
  113. },
  114. {
  115. "name": "Offset V",
  116. "pbrMetallicRoughness": {
  117. "baseColorTexture": {
  118. "index": 0,
  119. "extensions": {
  120. "KHR_texture_transform": {
  121. "offset": [
  122. 0.0,
  123. 0.5
  124. ]
  125. }
  126. }
  127. },
  128. "metallicFactor": 0
  129. }
  130. },
  131. {
  132. "name": "Offset UV",
  133. "pbrMetallicRoughness": {
  134. "baseColorTexture": {
  135. "index": 0,
  136. "extensions": {
  137. "KHR_texture_transform": {
  138. "offset": [
  139. 0.5,
  140. 0.5
  141. ]
  142. }
  143. }
  144. },
  145. "metallicFactor": 0
  146. }
  147. },
  148. {
  149. "name": "Rotation",
  150. "pbrMetallicRoughness": {
  151. "baseColorTexture": {
  152. "index": 1,
  153. "extensions": {
  154. "KHR_texture_transform": {
  155. "rotation": 0.39269908169872415480783042290994
  156. }
  157. }
  158. },
  159. "metallicFactor": 0
  160. }
  161. },
  162. {
  163. "name": "Scale",
  164. "pbrMetallicRoughness": {
  165. "baseColorTexture": {
  166. "index": 1,
  167. "extensions": {
  168. "KHR_texture_transform": {
  169. "scale": [
  170. 1.5,
  171. 1.5
  172. ]
  173. }
  174. }
  175. },
  176. "metallicFactor": 0
  177. }
  178. },
  179. {
  180. "name": "All",
  181. "pbrMetallicRoughness": {
  182. "baseColorTexture": {
  183. "index": 1,
  184. "extensions": {
  185. "KHR_texture_transform": {
  186. "offset": [
  187. -0.2,
  188. -0.1
  189. ],
  190. "rotation": 0.3,
  191. "scale": [
  192. 1.5,
  193. 1.5
  194. ]
  195. }
  196. }
  197. },
  198. "metallicFactor": 0
  199. }
  200. },
  201. {
  202. "name": "Correct",
  203. "pbrMetallicRoughness": {
  204. "baseColorTexture": {
  205. "index": 2
  206. },
  207. "metallicFactor": 0
  208. }
  209. },
  210. {
  211. "name": "NotSupported",
  212. "pbrMetallicRoughness": {
  213. "baseColorTexture": {
  214. "index": 3
  215. },
  216. "metallicFactor": 0
  217. }
  218. },
  219. {
  220. "name": "Error",
  221. "pbrMetallicRoughness": {
  222. "baseColorTexture": {
  223. "index": 4
  224. },
  225. "metallicFactor": 0
  226. }
  227. }
  228. ],
  229. "meshes": [
  230. {
  231. "name": "Offset U",
  232. "primitives": [
  233. {
  234. "attributes": {
  235. "POSITION": 0,
  236. "TEXCOORD_0": 2
  237. },
  238. "indices": 3,
  239. "material": 0
  240. }
  241. ]
  242. },
  243. {
  244. "name": "Offset V",
  245. "primitives": [
  246. {
  247. "attributes": {
  248. "POSITION": 0,
  249. "TEXCOORD_0": 2
  250. },
  251. "indices": 3,
  252. "material": 1
  253. }
  254. ]
  255. },
  256. {
  257. "name": "Offset UV",
  258. "primitives": [
  259. {
  260. "attributes": {
  261. "POSITION": 0,
  262. "TEXCOORD_0": 2
  263. },
  264. "indices": 3,
  265. "material": 2
  266. }
  267. ]
  268. },
  269. {
  270. "name": "Rotation",
  271. "primitives": [
  272. {
  273. "attributes": {
  274. "POSITION": 0,
  275. "TEXCOORD_0": 1
  276. },
  277. "indices": 3,
  278. "material": 3
  279. }
  280. ]
  281. },
  282. {
  283. "name": "Scale",
  284. "primitives": [
  285. {
  286. "attributes": {
  287. "POSITION": 0,
  288. "TEXCOORD_0": 1
  289. },
  290. "indices": 3,
  291. "material": 4
  292. }
  293. ]
  294. },
  295. {
  296. "name": "All",
  297. "primitives": [
  298. {
  299. "attributes": {
  300. "POSITION": 0,
  301. "TEXCOORD_0": 1
  302. },
  303. "indices": 3,
  304. "material": 5
  305. }
  306. ]
  307. },
  308. {
  309. "name": "Correct Marker",
  310. "primitives": [
  311. {
  312. "attributes": {
  313. "POSITION": 0,
  314. "TEXCOORD_0": 1
  315. },
  316. "indices": 3,
  317. "material": 6
  318. }
  319. ]
  320. },
  321. {
  322. "name": "Not Supported Marker",
  323. "primitives": [
  324. {
  325. "attributes": {
  326. "POSITION": 0,
  327. "TEXCOORD_0": 1
  328. },
  329. "indices": 3,
  330. "material": 7
  331. }
  332. ]
  333. },
  334. {
  335. "name": "Error Marker",
  336. "primitives": [
  337. {
  338. "attributes": {
  339. "POSITION": 0,
  340. "TEXCOORD_0": 1
  341. },
  342. "indices": 3,
  343. "material": 8
  344. }
  345. ]
  346. }
  347. ],
  348. "nodes": [
  349. {
  350. "name": "Offset U",
  351. "mesh": 0,
  352. "translation": [
  353. -1.1,
  354. 0.55,
  355. 0
  356. ]
  357. },
  358. {
  359. "name": "Offset V",
  360. "mesh": 1,
  361. "translation": [
  362. 0,
  363. 0.55,
  364. 0
  365. ]
  366. },
  367. {
  368. "name": "Offset UV",
  369. "mesh": 2,
  370. "translation": [
  371. 1.1,
  372. 0.55,
  373. 0
  374. ]
  375. },
  376. {
  377. "name": "Rotation",
  378. "mesh": 3,
  379. "translation": [
  380. -1.1,
  381. -0.55,
  382. 0
  383. ],
  384. "children": [
  385. 4,
  386. 5,
  387. 6
  388. ]
  389. },
  390. {
  391. "name": "Rotation - Correct",
  392. "mesh": 6,
  393. "translation": [
  394. -0.07904822439840125109869401756656,
  395. -0.51626748576241543174100150833647,
  396. 0.01
  397. ],
  398. "scale": [
  399. 0.15,
  400. 0.15,
  401. 0.15
  402. ]
  403. },
  404. {
  405. "name": "Rotation - Not Supported",
  406. "mesh": 7,
  407. "translation": [
  408. 0.27781745930520227684092879831533,
  409. -0.27781745930520227684092879831533,
  410. 0.01
  411. ],
  412. "scale": [
  413. 0.15,
  414. 0.15,
  415. 0.15
  416. ]
  417. },
  418. {
  419. "name": "Rotation - Error",
  420. "mesh": 8,
  421. "translation": [
  422. 0.51626748576241543174100150833647,
  423. 0.07904822439840125109869401756656,
  424. 0.01
  425. ],
  426. "scale": [
  427. 0.15,
  428. 0.15,
  429. 0.15
  430. ]
  431. },
  432. {
  433. "name": "Scale",
  434. "mesh": 4,
  435. "translation": [
  436. 0,
  437. -0.55,
  438. 0
  439. ],
  440. "children": [
  441. 8,
  442. 9
  443. ]
  444. },
  445. {
  446. "name": "Scale - Correct",
  447. "mesh": 6,
  448. "translation": [
  449. 0.01854497287013485122728586554355,
  450. -0.01854497287013485122728586554355,
  451. 0.01
  452. ],
  453. "scale": [
  454. 0.1,
  455. 0.1,
  456. 0.1
  457. ]
  458. },
  459. {
  460. "name": "Scale - Not Supported",
  461. "mesh": 7,
  462. "translation": [
  463. 0.27781745930520227684092879831533,
  464. -0.27781745930520227684092879831533,
  465. 0.01
  466. ],
  467. "scale": [
  468. 0.15,
  469. 0.15,
  470. 0.15
  471. ]
  472. },
  473. {
  474. "name": "All",
  475. "mesh": 5,
  476. "translation": [
  477. 1.1,
  478. -0.55,
  479. 0
  480. ],
  481. "children": [
  482. 11
  483. ]
  484. },
  485. {
  486. "name": "All - Correct",
  487. "mesh": 6,
  488. "translation": [
  489. -0.07,
  490. -0.25,
  491. 0.01
  492. ],
  493. "scale": [
  494. 0.1,
  495. 0.1,
  496. 0.1
  497. ]
  498. }
  499. ],
  500. "scene": 0,
  501. "scenes": [
  502. {
  503. "nodes": [
  504. 0,
  505. 1,
  506. 2,
  507. 3,
  508. 7,
  509. 10
  510. ]
  511. }
  512. ],
  513. "textures": [
  514. {
  515. "source": 0,
  516. "sampler": 0
  517. },
  518. {
  519. "source": 1,
  520. "sampler": 0
  521. },
  522. {
  523. "source": 2
  524. },
  525. {
  526. "source": 3
  527. },
  528. {
  529. "source": 4
  530. }
  531. ],
  532. "samplers": [
  533. {
  534. "wrapS": 33071,
  535. "wrapT": 33071,
  536. "magFilter": 9729,
  537. "minFilter": 9729
  538. }
  539. ]
  540. }