@openglobus/og 0.11.7 → 0.11.8
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/css/og.css +3 -2
- package/package.json +1 -1
- package/src/og/control/Lighting.js +52 -73
- package/src/og/control/MouseNavigation.js +21 -18
- package/src/og/control/MouseWheelZoomControl.js +257 -0
- package/src/og/control/index.js +2 -0
- package/src/og/control/visibleExtent/Segment.js +1862 -0
- package/src/og/control/visibleExtent/VisibleExtent.js +80 -0
- package/src/og/control/visibleExtent/drawnode.js +751 -0
- package/src/og/entity/BaseBillboard.js +9 -9
- package/src/og/entity/Label.js +7 -7
- package/src/og/layer/CanvasTiles.js +0 -1
- package/src/og/layer/GeoImage.js +2 -10
- package/src/og/layer/GeoTexture2d.js +2 -10
- package/src/og/layer/GeoVideo.js +2 -10
- package/src/og/layer/Layer.js +0 -22
- package/src/og/layer/WMS.js +0 -2
- package/src/og/layer/XYZ.js +4 -5
- package/src/og/renderer/Renderer.js +69 -94
- package/src/og/renderer/RendererEvents.js +3 -1
- package/src/og/scene/Planet.js +39 -61
- package/src/og/segment/Segment.js +60 -156
- package/src/og/segment/Slice.js +45 -0
- package/src/og/shaders/drawnode.js +197 -287
- package/src/og/utils/GeoImageCreator.js +5 -1
- package/src/og/webgl/Handler.js +1 -1
|
@@ -151,7 +151,11 @@ export class GeoImageCreator {
|
|
|
151
151
|
`precision highp float;
|
|
152
152
|
uniform sampler2D sourceTexture;
|
|
153
153
|
varying vec2 v_texCoords;
|
|
154
|
-
void main () {
|
|
154
|
+
void main () {
|
|
155
|
+
if(v_texCoords.x <= 0.001 || v_texCoords.x >= 0.999 ||
|
|
156
|
+
v_texCoords.y <= 0.001 || v_texCoords.y >= 0.999) {
|
|
157
|
+
discard;
|
|
158
|
+
}
|
|
155
159
|
gl_FragColor = texture2D(sourceTexture, v_texCoords);
|
|
156
160
|
}`
|
|
157
161
|
}));
|
package/src/og/webgl/Handler.js
CHANGED
|
@@ -919,7 +919,7 @@ class Handler {
|
|
|
919
919
|
/** Canvas resize checking */
|
|
920
920
|
let canvas = this.canvas;
|
|
921
921
|
|
|
922
|
-
if (canvas.clientWidth * this._params.pixelRatio !== canvas.width || canvas.clientHeight * this._params.pixelRatio !== canvas.height) {
|
|
922
|
+
if (Math.floor(canvas.clientWidth * this._params.pixelRatio) !== canvas.width || Math.floor(canvas.clientHeight * this._params.pixelRatio) !== canvas.height) {
|
|
923
923
|
this.setSize(canvas.clientWidth, canvas.clientHeight);
|
|
924
924
|
}
|
|
925
925
|
|