@pirireis/webglobeplugins 0.8.18 → 0.8.19

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": "@pirireis/webglobeplugins",
3
- "version": "0.8.18",
3
+ "version": "0.8.19",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -20,7 +20,7 @@ const MAX_PIXELS_ON_DIMENSION = 2200;
20
20
 
21
21
 
22
22
  export default class Plugin {
23
- constructor(id, { dataWidth, dataHeight, fadeOpacity = 0.83, opacity = 0.75, minLon = -180, minLat = -90, maxLon = 180, maxLat = 90, patricleCount = 8000, flipX = false, flipY = true, drawTextureMaxPixelOnDimension = MAX_PIXELS_ON_DIMENSION } = {}) {
23
+ constructor(id, { dataWidth, dataHeight, fadeOpacity = 0.83, opacity = 0.75, minLon = -180, minLat = -90, maxLon = 180, maxLat = 90, patricleCount = 8000, flipY = true, drawTextureMaxPixelOnDimension = MAX_PIXELS_ON_DIMENSION } = {}) {
24
24
 
25
25
  this.id = id;
26
26
  this.globe = null;
@@ -31,7 +31,6 @@ export default class Plugin {
31
31
  this._rgVectorFieldTexture = null;
32
32
  this.globeShellWiggle = null;
33
33
  this.waveUbo = null;
34
- this._flipX = flipX;
35
34
  this._flipY = flipY;
36
35
  this._drawTextureResolution = {};
37
36
  this._frameBuffer = null;
@@ -86,6 +85,7 @@ export default class Plugin {
86
85
  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.LINEAR);
87
86
  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
88
87
  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
88
+
89
89
  gl.bindTexture(gl.TEXTURE_2D, null);
90
90
  return texture;
91
91
  }
@@ -147,7 +147,7 @@ export default class Plugin {
147
147
  }
148
148
 
149
149
  _createRGTexture() {
150
- const { gl, _dataWidth, _dataHeight, flipX, flipY } = this;
150
+ const { gl, _dataWidth, _dataHeight, } = this;
151
151
  const texture = gl.createTexture();
152
152
  // R32F
153
153
  gl.bindTexture(gl.TEXTURE_2D, texture);
@@ -156,8 +156,8 @@ export default class Plugin {
156
156
  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MAG_FILTER, gl.NEAREST);
157
157
  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_S, gl.CLAMP_TO_EDGE);
158
158
  gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_WRAP_T, gl.CLAMP_TO_EDGE);
159
- gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipX);
160
- gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, flipY);
159
+ // gl.pixelStorei(gl.UNPACK_FLIP_X_WEBGL, this._flipX);
160
+ gl.pixelStorei(gl.UNPACK_FLIP_Y_WEBGL, this._flipY);
161
161
  gl.bindTexture(gl.TEXTURE_2D, null);
162
162
  return texture;
163
163
  }