[dali_2.0.7] Merge branch 'devel/master'
[platform/core/uifw/dali-toolkit.git] / automated-tests / resources / morph.dli
1 {
2     "metadata" : [ {
3         "key" : "clock-type",
4         "value" : "com.samsung.watchface-01"
5     }, {
6         "key" : "tickpersecond",
7         "value" : "1"
8     }, {
9         "key" : "preview_time",
10         "value" : "10:08:32"
11     }, {
12         "key" : "tilt-mode",
13         "value" : "light"
14     } ],
15     "asset" : {
16         "version" : "1.0"
17     },
18     "scene" : 0,
19     "scenes" : [ {
20         "nodes" : [ 0 ]
21     } ],
22     "nodes" : [ {
23         "name" : "HeadTest_002",
24         "matrix" : [ 0.01, 0.0, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.0, 1.0 ],
25         "children" : [ 1, 2 ],
26         "visible" : true,
27         "lightingMode" : "unlit"
28     }, {
29         "name" : "head",
30         "matrix" : [ 0.819152044288992, 0.0, 0.5735764363510462, 0.0, 0.0, 1.0, 0.0, 0.0, -0.5735764363510462, 0.0, 0.819152044288992, 0.0, 0.0, -143.995, -1.1208, 1.0 ],
31         "behavior" : [ 0 ],
32         "visible" : true,
33         "lightingMode" : "lit-solid",
34         "model" : {
35             "color" : [ 1.0, 1.0, 1.0, 1.0 ],
36             "material" : 0,
37             "mesh" : 0,
38             "shader" : 3
39         }
40     }, {
41         "name" : "Cube",
42         "matrix" : [ 25.98076211353316, 0.0, -15.0, 0.0, 0.0, 30.0, 0.0, 0.0, 15.0, 0.0, 25.98076211353316, 0.0, 0.0, 0.0, 0.0, 1.0 ],
43         "visible" : true,
44         "lightingMode" : "lit",
45         "model" : {
46             "color" : [ 1.0, 1.0, 1.0, 1.0 ],
47             "material" : 0,
48             "mesh" : 1,
49             "shader" : 4
50         }
51     } ],
52     "meshes" : [ {
53         "uri" : "morph/HeadTest_002.dae.bin",
54         "attributes" : 31,
55         "primitive" : "TRIANGLES",
56         "indices" : {
57             "byteOffset" : 0,
58             "byteLength" : 34524
59         },
60         "positions" : {
61             "byteOffset" : 34524,
62             "byteLength" : 37812
63         },
64         "normals" : {
65             "byteOffset" : 72336,
66             "byteLength" : 37812
67         },
68         "textures" : {
69             "byteOffset" : 110148,
70             "byteLength" : 25208
71         },
72         "tangents" : {
73             "byteOffset" : 135356,
74             "byteLength" : 37812
75         },
76         "blendShapeHeader" : {
77             "version" : "1.0",
78             "byteOffset" : 173168,
79             "byteLength" : 4
80         },
81         "blendShapes" : [ {
82             "name" : "Shape_01MeshMesh",
83             "weight" : 0.0,
84             "positions" : {
85                 "byteOffset" : 173172,
86                 "byteLength" : 37812
87             },
88             "normals" : {
89                 "byteOffset" : 210984,
90                 "byteLength" : 37812
91             }
92         }, {
93             "name" : "Shape_02MeshMesh",
94             "weight" : 0.0,
95             "positions" : {
96                 "byteOffset" : 248796,
97                 "byteLength" : 37812
98             },
99             "normals" : {
100                 "byteOffset" : 286608,
101                 "byteLength" : 37812
102             }
103         }, {
104             "name" : "Shape_03MeshMesh",
105             "weight" : 0.0,
106             "positions" : {
107                 "byteOffset" : 324420,
108                 "byteLength" : 37812
109             },
110             "normals" : {
111                 "byteOffset" : 362232,
112                 "byteLength" : 37812
113             }
114         } ]
115     }, {
116         "uri" : "morph/cube.gltf.bin",
117         "attributes" : 31,
118         "primitive" : "TRIANGLES",
119         "indices" : {
120             "byteOffset" : 0,
121             "byteLength" : 72
122         },
123         "positions" : {
124             "byteOffset" : 72,
125             "byteLength" : 288
126         },
127         "normals" : {
128             "byteOffset" : 360,
129             "byteLength" : 288
130         },
131         "textures" : {
132             "byteOffset" : 648,
133             "byteLength" : 192
134         },
135         "tangents" : {
136             "byteOffset" : 840,
137             "byteLength" : 288
138         }
139     } ],
140     "cameras" : [ {
141         "near" : 0.1,
142         "far" : 10000.0,
143         "matrix" : [ 0.01, 0.0, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.767773, 1.0 ],
144         "fov" : 54.4321
145     } ],
146     "lights" : [ {
147         "matrix" : [ 0.4999999403953552, 0.0, 0.8660255074501038, 0.0, 0.0, 1.0, 0.0, 0.0, -0.8660255074501038, 0.0, 0.4999999403953552, 0.0, 0.0, 0.0, 0.0, 1.0 ],
148         "color" : [ 1.0, 1.0, 1.0 ],
149         "intensity" : 1.0,
150         "shadowMapSize" : 1024,
151         "orthographicSize" : 1.0,
152         "shadowIntensity" : 1.0
153     } ],
154     "materials" : [ {
155         "name" : "No name",
156         "color" : [ 1.0, 1.0, 1.0, 1.0 ],
157         "mipmap" : true,
158         "roughness" : 1.0,
159         "metallic" : 1.0,
160         "environment" : 1
161     } ],
162     "environment" : [ {
163         "cubeInitialOrientation" : [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ],
164         "iblIntensity" : 1.0
165     }, {
166         "cubeSpecular" : "Studio/Radiance.ktx",
167         "cubeDiffuse" : "Studio/Irradiance.ktx",
168         "cubeInitialOrientation" : [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ],
169         "iblIntensity" : 1.0
170     } ],
171     "shaders" : [ {
172         "vertex" : "dli_pbr.vsh",
173         "fragment" : "dli_pbr.fsh",
174         "defines" : [ "LIT" ],
175         "rendererState" : "DEPTH_TEST|DEPTH_WRITE|CULL_BACK|DEPTH_FUNC:LESS_EQUAL",
176         "uCubeMatrix" : [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
177         "uMaxLOD" : 6
178     }, {
179         "vertex" : "dli_pbr.vsh",
180         "fragment" : "dli_pbr.fsh",
181         "defines" : [ "THREE_TEX" ],
182         "rendererState" : "DEPTH_TEST|ALPHA_BLEND",
183         "uCubeMatrix" : [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
184         "uMaxLOD" : 6
185     }, {
186         "vertex" : "dli_pbr.vsh",
187         "fragment" : "dli_pbr.fsh",
188         "defines" : [ "MORPH", "MORPH_POSITION", "MORPH_NORMAL" ],
189         "rendererState" : "DEPTH_TEST|DEPTH_WRITE|CULL_BACK|DEPTH_FUNC:LESS_EQUAL",
190         "uCubeMatrix" : [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ],
191         "uMaxLOD" : 6
192     }, {
193         "vertex" : "dli_pbr.vsh",
194         "fragment" : "dli_pbr.fsh",
195         "hints" : [ "MODIFIES_GEOMETRY" ],
196         "defines" : [ "MORPH", "MORPH_POSITION", "MORPH_NORMAL" ],
197         "rendererState" : "DEPTH_TEST|DEPTH_WRITE|CULL_BACK|DEPTH_FUNC:LESS_EQUAL",
198         "uCubeMatrix" : [ 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0 ],
199         "uMaxLOD" : 6
200     }, {
201         "vertex" : "dli_pbr.vsh",
202         "fragment" : "dli_pbr.fsh",
203         "defines" : [ "LIT", "SHADOW" ],
204         "rendererState" : "DEPTH_TEST|DEPTH_WRITE|CULL_FRONT",
205         "uCubeMatrix" : [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
206         "uMaxLOD" : 6
207     } ],
208     "behaviors" : [ {
209         "url" : "head-behavior_1.lua",
210         "event" : "scene.loaded"
211     } ],
212     "animations" : [ {
213         "name" : "Morph",
214         "loopCount" : 0,
215         "duration" : 1.0,
216         "endAction" : "DISCARD",
217         "disconnectAction" : "BAKE",
218         "properties" : [ {
219             "node" : "head",
220             "property" : "uBlendShapeWeight[0]",
221             "value" : 1.0,
222             "alphaFunction" : "DEFAULT",
223             "timePeriod" : {
224                 "delay" : 0.0,
225                 "duration" : 0.5
226             },
227             "relative" : false
228         }, {
229             "node" : "head",
230             "property" : "uBlendShapeWeight[1]",
231             "value" : 1.0,
232             "alphaFunction" : "DEFAULT",
233             "timePeriod" : {
234                 "delay" : 0.0,
235                 "duration" : 0.5
236             },
237             "relative" : false
238         }, {
239             "node" : "head",
240             "property" : "uBlendShapeWeight[2]",
241             "value" : 1.0,
242             "alphaFunction" : "DEFAULT",
243             "timePeriod" : {
244                 "delay" : 0.0,
245                 "duration" : 0.5
246             },
247             "relative" : false
248         }, {
249             "node" : "head",
250             "property" : "uBlendShapeWeight[0]",
251             "value" : 0.0,
252             "alphaFunction" : "DEFAULT",
253             "timePeriod" : {
254                 "delay" : 0.5,
255                 "duration" : 0.5
256             },
257             "relative" : false
258         }, {
259             "node" : "head",
260             "property" : "uBlendShapeWeight[1]",
261             "value" : 0.0,
262             "alphaFunction" : "DEFAULT",
263             "timePeriod" : {
264                 "delay" : 0.5,
265                 "duration" : 0.5
266             },
267             "relative" : false
268         }, {
269             "node" : "head",
270             "property" : "uBlendShapeWeight[2]",
271             "value" : 0.0,
272             "alphaFunction" : "DEFAULT",
273             "timePeriod" : {
274                 "delay" : 0.5,
275                 "duration" : 0.5
276             },
277             "relative" : false
278         } ]
279     } ]
280 }