Skip to content

Commit f9a2d25

Browse files
committed
fix 3741 - enable transparent gl-mesh3d draw with alpha color
1 parent 5baa139 commit f9a2d25

File tree

3 files changed

+29
-4
lines changed

3 files changed

+29
-4
lines changed

package-lock.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"gl-heatmap2d": "^1.0.5",
7979
"gl-line3d": "^1.1.11",
8080
"gl-mat4": "^1.2.0",
81-
"gl-mesh3d": "^2.1.0",
81+
"gl-mesh3d": "git://github.com/gl-vis/gl-mesh3d.git#6651929f5ac2c084ce51a88ff2e40311fab4a46c",
8282
"gl-plot2d": "^1.4.2",
8383
"gl-plot3d": "^2.2.1",
8484
"gl-pointcloud2d": "^1.0.2",
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"data": [
3+
{
4+
"type": "mesh3d",
5+
"x":[0, 1, 2, 0],
6+
"y":[0, 0, 1, 2],
7+
"z":[0, 2, 0, 1],
8+
"i":[0, 0, 0, 1],
9+
"j":[1, 2, 3, 2],
10+
"k":[2, 3, 1, 3],
11+
"vertexcolor": [
12+
"rgb(0, 0, 0, 1.0)",
13+
"rgb(255, 0, 0, 0.1)",
14+
"rgb(0, 255, 0, 0.1)",
15+
"rgb(0, 0, 255, 0.1)"
16+
]
17+
}
18+
],
19+
"layout": {
20+
"title": {
21+
"text": "Should draw transparent mesh<br>when having transparent rgba color"
22+
},
23+
"width": 400,
24+
"height": 400
25+
}
26+
}

0 commit comments

Comments
 (0)