@openglobus/og 0.13.2 → 0.13.3
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openglobus/og",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"description": "[OpenGlobus](http://www.openglobus.org/) is a javascript library designed to display interactive 3d maps and planets with map tiles, imagery and vector data, markers and 3d objects. It uses the WebGL technology, open source and completely free.",
|
|
5
5
|
"directories": {
|
|
6
6
|
"example": "./sandbox"
|
package/src/og/shaders/label.js
CHANGED
|
@@ -234,8 +234,8 @@ export function label_webgl2() {
|
|
|
234
234
|
if(strokeAlpha < 0.1){
|
|
235
235
|
discard;
|
|
236
236
|
}
|
|
237
|
-
outScreen = v_rgba *
|
|
238
|
-
}
|
|
237
|
+
outScreen = v_rgba * strokeAlpha * (0.5 - opacity) * 2.0;
|
|
238
|
+
}
|
|
239
239
|
}`
|
|
240
240
|
});
|
|
241
241
|
}
|
|
@@ -455,7 +455,7 @@ export function label_screen() {
|
|
|
455
455
|
if(strokeAlpha < 0.1){
|
|
456
456
|
discard;
|
|
457
457
|
}
|
|
458
|
-
gl_FragColor = v_rgba *
|
|
458
|
+
gl_FragColor = v_rgba * strokeAlpha * (0.5 - opacity) * 2.0;
|
|
459
459
|
}
|
|
460
460
|
}`
|
|
461
461
|
});
|