Change ModelView to Model
[platform/core/uifw/dali-toolkit.git] / automated-tests / resources / beer_modelTest.dli
1 {
2   "asset": { "version": "1.0" },
3   "scene": 0,
4   "scenes": [ { "nodes": [ 0 ] } ],
5   "nodes": [
6     {
7       "name": "Scene",
8       "matrix": [ 1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1 ],
9       "children": [ 1, 2 ]
10     },
11     {
12       "name": "Cube",
13       "matrix": [ 2.5, 0, 0, 0, 0, 2.5, 0, 0, 0, 0, 2.5, 0, 0, 0, 0, 1 ],
14       "model": {
15         "mesh": 0,
16         "material": 0,
17         "shader": 0
18       }
19     },
20     {
21       "name": "bottle",
22       "matrix": [ 0.125, 0, 0, 0, 0, -0, 0.125, 0, 0, -0.125, -0, 0, -0, 0, -1.5, 1 ],
23       "children": [ 3, 4, 5, 6 ]
24     },
25     {
26       "name": "bottle-cap",
27       "model": {
28         "mesh": 3,
29         "material": 2,
30         "shader": 1
31       }
32     },
33     {
34       "name": "bottle-alpha-front",
35       "model": {
36         "mesh": 1,
37         "material": 1,
38         "shader": 2
39       }
40     },
41     {
42       "name": "bottle-alpha-back",
43       "model": {
44         "mesh": 1,
45         "material": 1,
46         "shader": 3
47       }
48     },
49     {
50       "name": "bottle-label",
51       "model": {
52         "mesh": 2,
53         "material": 0,
54         "shader": 4
55       }
56     }
57   ],
58   "meshes": [
59     {
60       "uri": "cube.bin",
61       "attributes": 31,
62       "primitive": "TRIANGLES",
63       "indices": { "byteOffset": 0, "byteLength": 72 },
64       "positions": { "byteOffset": 72, "byteLength": 288 },
65       "normals": { "byteOffset": 360, "byteLength": 288 },
66       "textures": { "byteOffset": 648, "byteLength": 192 },
67       "tangents": { "byteOffset": 840, "byteLength": 288 }
68     },
69     {
70       "uri": "beer.bin",
71       "attributes": 31,
72       "primitive": "TRIANGLES",
73       "indices": { "byteOffset": 0, "byteLength": 19920 },
74       "positions": { "byteOffset": 19920, "byteLength": 54792 },
75       "normals": { "byteOffset": 74712, "byteLength": 54792 },
76       "textures": { "byteOffset": 129504, "byteLength": 36528 },
77       "tangents": { "byteOffset": 166032, "byteLength": 54792 }
78     },
79     {
80       "uri": "beer.bin",
81       "attributes": 31,
82       "primitive": "TRIANGLES",
83       "indices": { "byteOffset": 220824, "byteLength": 13200 },
84       "positions": { "byteOffset": 234024, "byteLength": 14628 },
85       "normals": { "byteOffset": 248652, "byteLength": 14628 },
86       "textures": { "byteOffset": 263280, "byteLength": 9752 },
87       "tangents": { "byteOffset": 273032, "byteLength": 14628 }
88     },
89     {
90       "uri": "beer.bin",
91       "attributes": 31,
92       "primitive": "TRIANGLES",
93       "indices": { "byteOffset": 287660, "byteLength": 31440 },
94       "positions": { "byteOffset": 319100, "byteLength": 121032 },
95       "normals": { "byteOffset": 440132, "byteLength": 121032 },
96       "textures": { "byteOffset": 561164, "byteLength": 80688 },
97       "tangents": { "byteOffset": 641852, "byteLength": 121032 }
98     }
99   ],
100   "skeletons": [
101   ],
102   "cameras": [
103     {
104       "fov": 60,
105       "near": 0.1,
106       "far": 100,
107       "matrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 3.5, 1 ]
108     }
109   ],
110   "lights": [
111   ],
112   "materials": [
113     {
114       "color": [ 1.0, 0.95, 0.5 ],
115       "metallic": 0.25,
116       "roughness": 1.0,
117       "environment": 1
118     },
119     {
120       "color": [ 0.1, 0.4, 0.0, 0.6 ],
121       "metallic": 0.4,
122       "roughness": 0.0,
123       "environment": 1
124     },
125     {
126       "color": [ 0.5, 0.5, 0.5 ],
127       "metallic": 1.0,
128       "roughness": 0.0,
129       "environment": 1
130     }
131   ],
132   "environment": [
133     {
134     },
135     {
136       "cubeSpecular": "Studio/Radiance.ktx",
137       "cubeDiffuse": "Studio/Irradiance.ktx",
138       "iblIntensity": 0.75
139     }
140   ],
141   "shaders": [
142     {
143       "vertex": "dli_pbr.vsh",
144       "fragment": "dli_pbr.fsh",
145       "rendererState": "DEPTH_TEST|CULL_FRONT",
146       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
147       "uMaxLOD": 6
148     },
149     {
150       "vertex": "dli_pbr.vsh",
151       "fragment": "dli_pbr.fsh",
152       "rendererState": "DEPTH_TEST|DEPTH_WRITE",
153       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
154       "uMaxLOD": 6
155     },
156     {
157       "vertex": "dli_pbr.vsh",
158       "fragment": "dli_pbr.fsh",
159       "defines": [ "THREE_TEX" ],
160       "rendererState": "ALPHA_BLEND|DEPTH_TEST|CULL_FRONT",
161       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
162       "uMaxLOD": 6
163     },
164     {
165       "vertex": "dli_pbr.vsh",
166       "fragment": "dli_pbr.fsh",
167       "defines": [ "THREE_TEX" ],
168       "rendererState": "ALPHA_BLEND|DEPTH_TEST|CULL_BACK",
169       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
170       "uMaxLOD": 6
171     },
172     {
173       "vertex": "dli_pbr.vsh",
174       "fragment": "dli_pbr.fsh",
175       "defines": [ "FLIP_V" ],
176       "rendererState": "DEPTH_TEST|DEPTH_WRITE|CULL_BACK",
177       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
178       "uMaxLOD": 6
179     }
180   ]
181 }