File tree Expand file tree Collapse file tree 5 files changed +478
-0
lines changed
examples/models/gltf/Pyramid Expand file tree Collapse file tree 5 files changed +478
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "accessors" : [
3+ {
4+ "bufferView" : 0 ,
5+ "componentType" : 5121 ,
6+ "count" : 36 ,
7+ "max" : [
8+ 23
9+ ],
10+ "min" : [
11+ 0
12+ ],
13+ "type" : " SCALAR"
14+ },
15+ {
16+ "bufferView" : 1 ,
17+ "componentType" : 5126 ,
18+ "count" : 24 ,
19+ "max" : [
20+ 2.0 ,
21+ 1.0 ,
22+ 2.000000238418579
23+ ],
24+ "min" : [
25+ -1.999999761581421 ,
26+ 0.0 ,
27+ -1.999999761581421
28+ ],
29+ "type" : " VEC3"
30+ },
31+ {
32+ "bufferView" : 2 ,
33+ "componentType" : 5126 ,
34+ "count" : 24 ,
35+ "max" : [
36+ 1.0 ,
37+ 1.0 ,
38+ 1.0
39+ ],
40+ "min" : [
41+ -1.0 ,
42+ -1.0 ,
43+ -1.0
44+ ],
45+ "type" : " VEC3"
46+ },
47+ {
48+ "bufferView" : 3 ,
49+ "componentType" : 5126 ,
50+ "count" : 24 ,
51+ "max" : [
52+ 5.364416892916779e-07 ,
53+ 1.0 ,
54+ 1.0 ,
55+ 1.0
56+ ],
57+ "min" : [
58+ -1.639128583974525e-07 ,
59+ -1.0 ,
60+ -1.0 ,
61+ 1.0
62+ ],
63+ "type" : " VEC4"
64+ },
65+ {
66+ "bufferView" : 4 ,
67+ "componentType" : 5126 ,
68+ "count" : 24 ,
69+ "max" : [
70+ 1.0 ,
71+ 1.0
72+ ],
73+ "min" : [
74+ 0.0 ,
75+ 0.0
76+ ],
77+ "type" : " VEC2"
78+ }
79+ ],
80+ "asset" : {
81+ "generator" : " Khronos Blender glTF 2.0 exporter" ,
82+ "version" : " 2.0"
83+ },
84+ "bufferViews" : [
85+ {
86+ "buffer" : 0 ,
87+ "byteLength" : 36 ,
88+ "byteOffset" : 0 ,
89+ "target" : 34963
90+ },
91+ {
92+ "buffer" : 0 ,
93+ "byteLength" : 288 ,
94+ "byteOffset" : 36 ,
95+ "target" : 34962
96+ },
97+ {
98+ "buffer" : 0 ,
99+ "byteLength" : 288 ,
100+ "byteOffset" : 324 ,
101+ "target" : 34962
102+ },
103+ {
104+ "buffer" : 0 ,
105+ "byteLength" : 384 ,
106+ "byteOffset" : 612 ,
107+ "target" : 34962
108+ },
109+ {
110+ "buffer" : 0 ,
111+ "byteLength" : 192 ,
112+ "byteOffset" : 996 ,
113+ "target" : 34962
114+ }
115+ ],
116+ "buffers" : [
117+ {
118+ "byteLength" : 1188 ,
119+ "uri" : " pyramid.bin"
120+ }
121+ ],
122+ "images" : [
123+ {
124+ "uri" : " colorgrid.png"
125+ }
126+ ],
127+ "materials" : [
128+ {
129+ "name" : " Material" ,
130+ "pbrMetallicRoughness" : {
131+ "baseColorTexture" : {
132+ "index" : 0
133+ }
134+ }
135+ },
136+ {
137+ "name" : " Material.001" ,
138+ "pbrMetallicRoughness" : {
139+ "baseColorTexture" : {
140+ "index" : 0 ,
141+ "extensions" : {
142+ "KHR_texture_transform" : {
143+ "offset" : [0 ,0 ],
144+ "scale" : [1 , 0.75 ],
145+ "rotation" : -3.141592654
146+ }
147+ }
148+ }
149+ }
150+ },
151+ {
152+ "name" : " Material.002" ,
153+ "pbrMetallicRoughness" : {
154+ "baseColorTexture" : {
155+ "index" : 0 ,
156+ "extensions" : {
157+ "KHR_texture_transform" : {
158+ "offset" : [0 ,0 ],
159+ "scale" : [1 , 0.5 ]
160+ }
161+ }
162+ }
163+ }
164+ },
165+ {
166+ "name" : " Material.003" ,
167+ "pbrMetallicRoughness" : {
168+ "baseColorTexture" : {
169+ "index" : 0 ,
170+ "extensions" : {
171+ "KHR_texture_transform" : {
172+ "offset" : [0 ,0 ],
173+ "scale" : [1 , 0.25 ]
174+ }
175+ }
176+ }
177+ }
178+ }
179+ ],
180+ "meshes" : [
181+ {
182+ "name" : " Cube.003" ,
183+ "primitives" : [
184+ {
185+ "attributes" : {
186+ "NORMAL" : 2 ,
187+ "POSITION" : 1 ,
188+ "TANGENT" : 3 ,
189+ "TEXCOORD_0" : 4
190+ },
191+ "indices" : 0 ,
192+ "material" : 3
193+ }
194+ ]
195+ },
196+ {
197+ "name" : " Cube.001" ,
198+ "primitives" : [
199+ {
200+ "attributes" : {
201+ "NORMAL" : 2 ,
202+ "POSITION" : 1 ,
203+ "TANGENT" : 3 ,
204+ "TEXCOORD_0" : 4
205+ },
206+ "indices" : 0 ,
207+ "material" : 1
208+ }
209+ ]
210+ },
211+ {
212+ "name" : " Cube" ,
213+ "primitives" : [
214+ {
215+ "attributes" : {
216+ "NORMAL" : 2 ,
217+ "POSITION" : 1 ,
218+ "TANGENT" : 3 ,
219+ "TEXCOORD_0" : 4
220+ },
221+ "indices" : 0 ,
222+ "material" : 0
223+ }
224+ ]
225+ },
226+ {
227+ "name" : " Cube.002" ,
228+ "primitives" : [
229+ {
230+ "attributes" : {
231+ "NORMAL" : 2 ,
232+ "POSITION" : 1 ,
233+ "TANGENT" : 3 ,
234+ "TEXCOORD_0" : 4
235+ },
236+ "indices" : 0 ,
237+ "material" : 2
238+ }
239+ ]
240+ }
241+ ],
242+ "nodes" : [
243+ {
244+ "mesh" : 2 ,
245+ "name" : " Cube"
246+ },
247+ {
248+ "mesh" : 1 ,
249+ "name" : " Cube.001" ,
250+ "scale" : [
251+ 0.75 ,
252+ 1.0 ,
253+ 0.75
254+ ],
255+ "translation" : [
256+ 0.0 ,
257+ 1.0 ,
258+ -0.0
259+ ]
260+ },
261+ {
262+ "mesh" : 3 ,
263+ "name" : " Cube.002" ,
264+ "scale" : [
265+ 0.5 ,
266+ 1.0 ,
267+ 0.5
268+ ],
269+ "translation" : [
270+ 0.0 ,
271+ 2.0 ,
272+ -0.0
273+ ]
274+ },
275+ {
276+ "mesh" : 0 ,
277+ "name" : " Cube.003" ,
278+ "scale" : [
279+ 0.25 ,
280+ 1.0 ,
281+ 0.25
282+ ],
283+ "translation" : [
284+ 0.0 ,
285+ 3.0 ,
286+ -0.0
287+ ]
288+ }
289+ ],
290+ "samplers" : [
291+ {}
292+ ],
293+ "scene" : 0 ,
294+ "scenes" : [
295+ {
296+ "name" : " Scene" ,
297+ "nodes" : [
298+ 3 ,
299+ 2 ,
300+ 1 ,
301+ 0
302+ ]
303+ }
304+ ],
305+ "textures" : [
306+ {
307+ "sampler" : 0 ,
308+ "source" : 0
309+ }
310+ ],
311+ "extensionsUsed" : [" KHR_texture_transform" ]
312+ }
You can’t perform that action at this time.
0 commit comments