@fusion.dev/helix-graph 0.226.0 → 0.228.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -133,12 +133,16 @@ varying float vRoom;
|
|
|
133
133
|
|
|
134
134
|
void main() {
|
|
135
135
|
vec2 q = (gl_PointCoord * 2.0 - 1.0) * vRoom;
|
|
136
|
-
float d =
|
|
137
|
-
/*
|
|
138
|
-
dark ground shows between the body and its halo. */
|
|
139
|
-
if (d < 0.965) discard;
|
|
136
|
+
float d = length(q);
|
|
137
|
+
/* A sphere's halo starts just inside its edge, under its antialiasing, so no
|
|
138
|
+
seam of dark ground shows between the body and its halo. */
|
|
139
|
+
if (vShape < 0.5 && d < 0.965) discard;
|
|
140
140
|
float past = clamp((d - 0.965) / max(vRoom - 0.965, 0.001), 0.0, 1.0);
|
|
141
|
-
|
|
141
|
+
/* A mesh turns and its sprite does not, so a hole cut to the mesh's outline
|
|
142
|
+
showed as a dark box beside it. Its halo is round and fades in from the
|
|
143
|
+
middle, and shows through the mesh's clear faces. */
|
|
144
|
+
float inside = vShape < 0.5 ? 1.0 : smoothstep(0.0, 0.965, d);
|
|
145
|
+
float alpha = (bloom + vGlow * 0.6) * pow(1.0 - past, 2.4) * inside * vTint.a * vFade;
|
|
142
146
|
if (alpha < 0.01) discard;
|
|
143
147
|
gl_FragColor = vec4(vTint.rgb, alpha);
|
|
144
148
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fusion.dev/helix-graph",
|
|
3
3
|
"description": "Connects the Helix Graph frame to a graph renderer: Sigma.js, cosmos.gl, three.js, or a driver of your own.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.228.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Fusion Development Group",
|
|
7
7
|
"repository": {
|
|
@@ -60,12 +60,12 @@
|
|
|
60
60
|
},
|
|
61
61
|
"bugs": "https://github.com/project-fusion/fusion/issues",
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@fusion.dev/helix-core": "0.
|
|
63
|
+
"@fusion.dev/helix-core": "0.228.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@cosmos.gl/graph": "^3.5.1",
|
|
67
|
-
"@fusion.dev/helix-headless": "0.
|
|
68
|
-
"@fusion.dev/helix-testing": "0.
|
|
67
|
+
"@fusion.dev/helix-headless": "0.228.0",
|
|
68
|
+
"@fusion.dev/helix-testing": "0.228.0",
|
|
69
69
|
"@luma.gl/core": "~9.3.6",
|
|
70
70
|
"@luma.gl/engine": "~9.3.6",
|
|
71
71
|
"@luma.gl/shadertools": "~9.3.6",
|