-
Notifications
You must be signed in to change notification settings - Fork 1
/
Sample.json
97 lines (96 loc) · 1.44 KB
/
Sample.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
{
"settings": {
"resolution-x": 1920,
"resolution-y": 1080,
"samples": 0,
"depth": 10
},
"world": {
"sky": [1, 1, 1]
},
"camera": {
"projection": "perspective",
"position": [0, 2.25, -15],
"direction": [0, 0, 1],
"upward": [0, 1, 0],
"focal-length": 3
},
"objects": [
{
"surface": {
"type": "sphere",
"position": [0, 2.75, 0],
"radius": 1
},
"material-id": "yellow"
},
{
"surface": {
"type": "sphere",
"position": [-1, 1, 0],
"radius": 1
},
"material-id": "blue"
},
{
"surface": {
"type": "sphere",
"position": [1, 1, 0],
"radius": 1
},
"material-id": "purple"
},
{
"surface": {
"type": "plane",
"normal": [0, 1, 0],
"distance": 0
},
"material-id": "mirror"
},
{
"surface": {
"type": "plane",
"normal": [1, 0, -1],
"distance": -2
},
"material-id": "mirror"
},
{
"surface": {
"type": "plane",
"normal": [-1, 0, -1],
"distance": -2
},
"material-id": "mirror"
}
],
"lights": [
{
"position": [5, 8, -5],
"intensity": [1, 1, 1]
},
{
"position": [-5, 4, -3],
"intensity": [0.25, 0.4, 0.1]
}
],
"materials": {
"yellow": {
"diffuse": [0.8, 0.75, 0],
"reflect": 0.2
},
"blue": {
"diffuse": [0, 0.65, 1],
"reflect": 0.2
},
"purple": {
"diffuse": [0.8, 0, 1],
"reflect": 0.2
},
"mirror": {
"diffuse": [0.5, 0.5, 0.5],
"reflect": 0.4
}
}
}