-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathgl3d_mesh3d_surface_lighting.json
78 lines (78 loc) · 2.7 KB
/
gl3d_mesh3d_surface_lighting.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
{
"data": [
{
"x": [0, 0, 0, 1, 1, 1, 2, 2, 2],
"y": [100, 101, 102, 100, 101, 102, 100, 101, 102],
"z": [1.5, 1.5, 1.5, 1.5, 2.5, 3.5, 1.5, 3.5, 5.5],
"type": "mesh3d",
"color": "grey",
"lighting": { "ambient": 0.5, "diffuse": 0.5, "specular": 0.5, "roughness": 0.5, "fresnel": 0.5 },
"lightposition": { "x": 0, "y": 2000, "z": 1000 }
},
{
"x": [0, 0, 0, 1, 1, 1, 2, 2, 2],
"y": [100, 99, 98, 100, 99, 98, 100, 99, 98],
"z": [1.5, 1.5, 1.5, 1.5, 2.5, 3.5, 1.5, 3.5, 5.5],
"type": "mesh3d",
"color": "grey",
"lighting": { "ambient": 0.5, "diffuse": 0.5, "specular": 0.5, "roughness": 0.5, "fresnel": 0.5 },
"lightposition": { "x": 0, "y": 2000, "z": 1000 }
},
{
"x": [0, 0, 0, -1, -1, -1, -2, -2, -2],
"y": [100, 99, 98, 100, 99, 98, 100, 99, 98],
"z": [1.5, 1.5, 1.5, 1.5, 2.5, 3.5, 1.5, 3.5, 5.5],
"type": "mesh3d",
"color": "grey",
"lighting": { "ambient": 0.5, "diffuse": 0.5, "specular": 0.5, "roughness": 0.5, "fresnel": 0.5 },
"lightposition": { "x": 0, "y": 2000, "z": 1000 }
},
{
"x": [0, 0, 0, -1, -1, -1, -2, -2, -2],
"y": [100, 101, 102, 100, 101, 102, 100, 101, 102],
"z": [1.5, 1.5, 1.5, 1.5, 2.5, 3.5, 1.5, 3.5, 5.5],
"type": "mesh3d",
"color": "grey",
"lighting": { "ambient": 0.5, "diffuse": 0.5, "specular": 0.5, "roughness": 0.5, "fresnel": 0.5 },
"lightposition": { "x": 0, "y": 2000, "z": 1000 }
},
{
"x": [-2, -1, 0, 1, 2],
"y": [98, 99, 100, 101, 102],
"z": [
[4, 2, 0, 2, 4],
[2, 1, 0, 1, 2],
[0, 0, 0, 0, 0],
[2, 1, 0, 1, 2],
[4, 2, 0, 2, 4]
],
"type": "surface",
"colorscale": [[0, "grey"], [1, "grey"]],
"showscale": false,
"lighting": { "ambient": 0.5, "diffuse": 0.5, "specular": 0.5, "roughness": 0.5, "fresnel": 0.5 },
"lightposition": { "x": 0, "y": 2000, "z": 1000 }
}
],
"layout": {
"height": 800,
"width": 800,
"title": {
"text": "Mesh3d and surface lighting"
},
"scene": {
"xaxis": {
},
"yaxis": {
},
"zaxis": {
},
"camera": {
"eye": {
"x": 2.0,
"y": -1.5,
"z": 0.5
}
}
}
}
}