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