-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprogram-5-scene-2.json
64 lines (64 loc) · 1.57 KB
/
program-5-scene-2.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
{
"camera_look_at": [0, 0, 0],
"camera_look_from": [0, 0, 1],
"camera_look_up": [0, 1, 0],
"field_of_view": 60,
"light_direction": [1.0, 1.0, 1.0],
"light_color": [1.0, 1.0, 1.0],
"ambient_light_color": [0.1, 0.1, 0.1],
"background_color": [0.2, 0.2, 0.2],
"objects": [
{
"name": "white sphere",
"type": "sphere",
"position": [0.45, 0.0, -0.15],
"radius": 0.15,
"ambient_coefficient": 0.3,
"diffuse_coefficient": 0.8,
"specular_coefficient": 0.1,
"diffuse_color": [1.0, 1.0, 1.0],
"specular_color": [1.0, 1.0, 1.0],
"gloss_coefficient": 4.0,
"reflectivity": 0.0
},
{
"name": "red sphere",
"type": "sphere",
"position": [0.0, 0.0, -0.1],
"radius": 0.2,
"ambient_coefficient": 0.1,
"diffuse_coefficient": 0.6,
"specular_coefficient": 0.3,
"diffuse_color": [1.0, 0.0, 0.0],
"specular_color": [1.0, 1.0, 1.0],
"gloss_coefficient": 32.0,
"reflectivity": 0.0
},
{
"name": "green sphere",
"type": "sphere",
"position": [-0.6, 0.0, 0.0],
"radius": 0.3,
"ambient_coefficient": 0.1,
"diffuse_coefficient": 0.7,
"specular_coefficient": 0.2,
"diffuse_color": [0.0, 1.0, 0.0],
"specular_color": [0.5, 1.0, 0.5],
"gloss_coefficient": 64.0,
"reflectivity": 0.0
},
{
"name": "blue sphere",
"type": "sphere",
"position": [0.0, -10000.5, 0.0],
"radius": 10000.0,
"ambient_coefficient": 0.1,
"diffuse_coefficient": 0.9,
"specular_coefficient": 0.0,
"diffuse_color": [0.0, 0.0, 1.0],
"specular_color": [1.0, 1.0, 1.0],
"gloss_coefficient": 16.0,
"reflectivity": 0.0
}
]
}