-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemissive.json
135 lines (135 loc) · 3.33 KB
/
emissive.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
{
"width": 800,
"height": 800,
"camera": { "position": [5, 1, 4] },
"objects": [
{
"type": "plane",
"normal": [0, 1, 0],
"transform": [{ "translate": [0, -1, 0] }],
"material": { "type": "phong", "color": [1, 1, 1] }
},
{
"type": "sphere",
"radius": 0.7,
"transform": [{ "translate": [1, 2, -1] }],
"material": { "type": "phong", "color": [0.4, 1, 0.2] }
},
{
"type": "sphere",
"radius": 1.2,
"transform": [{ "translate": [-2, 1, 0] }],
"material": { "type": "phong", "color": [1, 0.4, 0.2] }
},
{
"type": "cube",
"size": 0.5,
"transform": [
{ "rotate": [[1, 0, 1], 50] },
{ "translate": [-0.5, 2, 2] }
],
"material": {
"type": "phong",
"color": [0.2, 1, 1],
"emissive": [0.2, 1, 1]
}
},
{
"type": "sphere",
"radius": 1,
"transform": [{ "translate": [1, 0, 0] }],
"material": { "type": "phong", "color": [0.4, 0.2, 1] }
},
{
"type": "sphere",
"radius": 0.5,
"transform": [{ "translate": [1, 0, 2] }],
"material": { "type": "phong", "color": [0.2, 0.4, 1] }
},
{
"type": "sphere",
"radius": 0.25,
"transform": [{ "translate": [2, 0, 2] }],
"material": {
"type": "phong",
"color": [1, 0.2, 0.4],
"emissive": [1, 0.2, 0.4]
}
},
{
"type": "cube",
"size": 0.7,
"transform": [{ "translate": [-2, -0.5, -1] }],
"material": {
"type": "phong",
"color": [0.2, 1, 0.4],
"emissive": [0.2, 1, 0.4]
}
},
{
"type": "cube",
"size": 0.5,
"transform": [{ "translate": [2, -0.5, 1] }],
"material": { "type": "phong", "color": [0.2, 1, 0.4] },
"children": [
{
"type": "cube",
"size": 0.1,
"transform": [{ "scale": [0.2, 2, 2] }, { "translate": [0.3, 0, 0] }],
"material": { "type": "phong", "color": [0, 0, 0] }
},
{
"type": "cube",
"size": 0.1,
"transform": [
{ "scale": [0.1, 1, 1] },
{ "translate": [0.31, 0, 0] }
],
"material": {
"type": "phong",
"color": [1, 1, 1],
"emissive": [1, 1, 1]
}
},
{
"type": "cube",
"size": 0.1,
"transform": [{ "scale": [0.2, 2, 2] }, { "translate": [0.5, 0, 0] }],
"material": { "type": "phong", "color": [1, 1, 1], "reflectivity": 1 }
}
]
},
{
"type": "cube",
"size": 1.5,
"transform": [{ "translate": [2, -0.5, -2] }],
"material": {
"type": "phong",
"color": [1, 0.2, 0.4],
"reflectivity": 1
},
"children": [
{
"type": "cube",
"size": 0.3,
"transform": [{ "translate": [1, -0.3, 0] }],
"material": {
"type": "phong",
"color": [0.2, 0.4, 1],
"emissive": [0.2, 0.4, 1]
}
},
{
"type": "sphere",
"radius": 0.2,
"transform": [{ "translate": [0, -0.3, 1.2] }],
"material": {
"type": "phong",
"color": [0.4, 1, 0.2],
"emissive": [0.4, 1, 0.2]
}
}
]
}
]
}