DALi Version 2.1.40
[platform/core/uifw/dali-demo.git] / resources / models / beer_modelView.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": 3,
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": 2,
54         "shader": 4
55       }
56     }
57   ],
58   "meshes": [
59     {
60       "uri": "beer/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/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/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/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       "albedoMap": "../images/beer/etiqueta.jpg",
127       "roughness": 0.5,
128       "environment": 1
129     },
130     {
131       "color": [ 0.5, 0.5, 0.5 ],
132       "metallic": 1.0,
133       "roughness": 0.0,
134       "environment": 1
135     }
136   ],
137   "environment": [
138     {
139     },
140     {
141       "cubeSpecular": "../images/Studio/Radiance.ktx",
142       "cubeDiffuse": "../images/Studio/Irradiance.ktx",
143       "iblIntensity": 0.75
144     }
145   ],
146   "shaders": [
147     {
148       "vertex": "../shaders/dli_pbr.vsh",
149       "fragment": "../shaders/dli_pbr.fsh",
150       "rendererState": "DEPTH_TEST|CULL_FRONT",
151       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
152       "uMaxLOD": 6
153     },
154     {
155       "vertex": "../shaders/dli_pbr.vsh",
156       "fragment": "../shaders/dli_pbr.fsh",
157       "rendererState": "DEPTH_TEST|DEPTH_WRITE",
158       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
159       "uMaxLOD": 6
160     },
161     {
162       "vertex": "../shaders/dli_pbr.vsh",
163       "fragment": "../shaders/dli_pbr.fsh",
164       "defines": [ "THREE_TEX" ],
165       "rendererState": "ALPHA_BLEND|DEPTH_TEST|CULL_FRONT",
166       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
167       "uMaxLOD": 6
168     },
169     {
170       "vertex": "../shaders/dli_pbr.vsh",
171       "fragment": "../shaders/dli_pbr.fsh",
172       "defines": [ "THREE_TEX" ],
173       "rendererState": "ALPHA_BLEND|DEPTH_TEST|CULL_BACK",
174       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
175       "uMaxLOD": 6
176     },
177     {
178       "vertex": "../shaders/dli_pbr.vsh",
179       "fragment": "../shaders/dli_pbr.fsh",
180       "defines": [ "FLIP_V" ],
181       "rendererState": "DEPTH_TEST|DEPTH_WRITE|CULL_BACK",
182       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
183       "uMaxLOD": 6
184     }
185   ]
186 }