-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
116 lines (116 loc) · 2.13 KB
/
config.json
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
{
"width": 1920,
"height": 1080,
"lightLoss": true,
"reflections": 2,
"objects": [
{
"type": "camera",
"fov": 90,
"position": [0, 0, 0],
"direction": [1, 0, 0],
"up": [0, 1, 0]
},
{
"type": "light",
"position": [2.5, 3.5, 2],
"color": [255, 255, 255],
"intensity": 25
},
{
"type": "plane",
"texture": "planeColor1",
"position": [0, -2, 0],
"normal": [0, 1, 0]
},
{
"type": "sphere",
"texture": "objColor1",
"position": [7.5, -0.7, 4],
"radius": 1.3
},
{
"type": "sphere",
"texture": "objColor2",
"position": [5, -1, -3],
"radius": 1
},
{
"type": "sphere",
"texture": "objColor4",
"position": [4.2, -1.5, 1.2],
"radius": 0.5
},
{
"type": "sphere",
"texture": "objColor5",
"position": [6.5, -1.5, -1.65],
"radius": 0.55
},
{
"type": "triangle",
"texture": "objColor3",
"position": [0, 0, 0],
"v0": [9, -1, 4],
"v1": [9, 3, 0],
"v2": [9, -1, -4]
}
],
"materials": [
{
"name": "matObj",
"diffuse": 0.8,
"specular": 0.7,
"ambient": 0.2
},
{
"name": "matPlane",
"diffuse": 0.85,
"specular": 0.3,
"ambient": 0.4
},
{
"name": "matBox",
"diffuse": 0.8,
"specular": 0.1,
"ambient": 0.4
}
],
"textures": [
{
"name": "objColor1",
"material": "matObj",
"color": [66, 135, 245]
},
{
"name": "objColor2",
"material": "matObj",
"color": [120, 180, 60]
},
{
"name": "objColor3",
"material": "matObj",
"color": [227, 15, 30]
},
{
"name": "objColor4",
"material": "matObj",
"color": [210, 40, 170]
},
{
"name": "objColor5",
"material": "matObj",
"color": [255, 211, 68]
},
{
"name": "planeColor1",
"material": "matPlane",
"color": [200, 150, 120]
},
{
"name": "boxColor1",
"material": "matBox",
"color": [255, 255, 255]
}
]
}