-
Notifications
You must be signed in to change notification settings - Fork 1
/
rgb-spheres.json
105 lines (105 loc) · 2.6 KB
/
rgb-spheres.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
{
"max_depth": 5,
"super_sampling": {
"On": 4
},
"cameras": [{
"fov": 0.873,
"width": 2560,
"height": 1440,
"position": [0.0, 5.0, 0.0],
"look_at": [0.0, 2.0, -30.0],
"up": [0.0, 1.0, 0.0]
}],
"scenes": [{
"clear_color": [0.0, 0.0, 0.0],
"ambient_color": [0.2, 0.2, 0.2],
"objects": [{
"type": "Plane",
"normal": [0.0, 1.0, 0.0],
"material_name": "wall"
}, {
"type": "Plane",
"normal": [0.0, 0.0, 1.0],
"material_name": "wall",
"transforms": [{
"type": "Translate",
"value": [0.0, 0.0, -35.0]
}]
}, {
"type": "Sphere",
"radius": 1.5,
"material_name": "green_sphere",
"transforms": [{
"type": "Translate",
"value": [0.0, 2.0, -30.0]
}]
}, {
"type": "Sphere",
"radius": 1.5,
"material_name": "blue_sphere",
"transforms": [{
"type": "Translate",
"value": [15.0, 2.0, -30.0]
}]
}, {
"type": "Sphere",
"radius": 1.5,
"material_name": "red_sphere",
"transforms": [{
"type": "Translate",
"value": [-15.0, 2.0, -30.0]
}]
}],
"lights": [{
"type": "PointLight",
"origin": [0.0, 15.0, -20.0],
"color": [1.0, 1.0, 1.0],
"intensity": 100.0
}, {
"type": "PointLight",
"origin": [0.0, 8.0, -30.0],
"color": [0.262745098, 0.976470588, 0.992156863],
"intensity": 5.0
}, {
"type": "PointLight",
"origin": [-15.0, 8.0, -30.0],
"color": [0.360784314, 0.992156863, 0.262745098],
"intensity": 5.0
}, {
"type": "PointLight",
"origin": [15.0, 8.0, -30.0],
"color": [0.992156863, 0.450980392, 0.023529412],
"intensity": 5.0
}]
}],
"materials": [{
"name": "red_sphere",
"ambient_color": [0.0, 0.0, 0.0],
"diffuse_color": [0.86, 0.0, 0.31],
"specular_color": [0.0, 0.0, 0.0],
"specular_exponent": 0,
"illumination_model": "Diffuse"
}, {
"name": "green_sphere",
"ambient_color": [0.0, 0.0, 0.0],
"diffuse_color": [0.0, 0.86, 0.31],
"specular_color": [0.0, 0.0, 0.0],
"specular_exponent": 0,
"illumination_model": "Diffuse"
}, {
"name": "blue_sphere",
"ambient_color": [0.0, 0.0, 0.0],
"diffuse_color": [0.0, 0.31, 0.86],
"specular_color": [0.0, 0.0, 0.0],
"specular_exponent": 0,
"illumination_model": "Diffuse"
}, {
"name": "wall",
"ambient_color": [0.1, 0.1, 0.1],
"diffuse_color": [1.0, 1.0, 1.0],
"specular_color": [0.0, 0.0, 0.0],
"specular_exponent": 0,
"illumination_model": "Diffuse"
}]
}