Ambient occlusion support in DLI model
[platform/core/uifw/dali-toolkit.git] / automated-tests / resources / coverageTest.dli
1 {
2   "asset": { "version": "1.0" },
3   "scene": 0,
4   "scenes": [ { "nodes": [ 0 ] } ],
5   "nodes": [
6     {
7       "name": "root",
8       "matrix": [ 0.2, 0, 0, 0, 0, -0, 0.2, 0, 0, -0.2, -0, 0, 0, 0, 0, 1 ],
9       "model": {
10         "mesh": 0,
11         "material": 0
12       }
13     }
14   ],
15   "meshes": [
16     {
17       "uri": "coverageTest.bin",
18       "attributes": 31,
19       "primitive": "TRIANGLES",
20       "indices": { "byteOffset": 0, "byteLength": 600 },
21       "positions": { "byteOffset": 600, "byteLength": 2364 },
22       "normals": { "byteOffset": 2964, "byteLength": 2364 },
23       "textures": { "byteOffset": 5328, "byteLength": 1576 },
24       "tangents": { "byteOffset": 6904, "byteLength": 2364 }
25     }
26   ],
27   "skeletons": [
28   ],
29   "cameras": [
30     {
31       "fov": 60,
32       "near": 0.1,
33       "far": 100,
34       "matrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 3.5, 1 ]
35     }
36   ],
37   "materials": [
38     {
39       "name": "material1",
40       "color": [ 1, 1, 0, 1 ],
41       "roughness": 0.4,
42       "metallic": 0,
43       "occlusionMap": "exercise/Icons/Icon_Idle.png",
44       "mipmap": true,
45       "environment" : 1
46     },
47     {
48       "name": "",
49       "color": [ 1, 1, 1, 1 ],
50       "roughness": 1,
51       "metallic": 1,
52       "mipmap": true
53     }
54   ],
55   "lights" : [ {
56       "matrix" : [ 0.8950600624084473, 0.0914330929517746, 0.4364715814590454, 0.0, 0.3676385283470154, 0.4026888310909271, -0.8382623195648193, 0.0, -0.25240713357925415, 0.9107588529586792, 0.3268163800239563, 0.0, 0.0, 0.0, -1.0, 1.0 ],
57       "color" : [ 0.8, 0.8, 0.8 ],
58       "intensity" : 1.0,
59       "shadowMapSize" : 256,
60       "orthographicSize" : 4.2760005,
61       "shadowIntensity" : 1.0
62     } ],
63   "environment" : [ {
64       "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 ],
65       "iblIntensity" : 1.0
66   }, {
67       "cubeSpecular" : "Studio/Radiance.ktx",
68       "cubeDiffuse" : "Studio/Irradiance.ktx",
69       "cubeInitialOrientation" : [ 0.6716271638870239, 0.07979151606559753, -0.7365801334381104, 0.0, 0.07979151606559753, 0.9806114435195923, 0.17898204922676086, 0.0, 0.7365801334381104, -0.17898204922676086, 0.6522386074066162, 0.0, 0.0, 0.0, 0.0, 1.0 ],
70       "iblIntensity" : 0.75
71   } ],
72   "shaders": [
73     {
74       "vertex": "dli_pbr.vsh",
75       "fragment": "dli_pbr.fsh",
76       "defines" : [ "OCCLUSION", "DISPLACEMENT" ],
77       "rendererState": "DEPTH_TEST|DEPTH_WRITE|CULL_BACK|DEPTH_FUNC:LESS_EQUAL",
78       "uCubeMatrix": [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 ],
79       "uMaxLOD": 6
80     }
81   ]
82 }