@pirireis/webglobeplugins 1.6.0 → 1.6.1
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
|
@@ -120,7 +120,6 @@ export default class Plugin {
|
|
|
120
120
|
}
|
|
121
121
|
if (this.options.useSpeedTexture) {
|
|
122
122
|
this.waveUbo.updateSingle("use_magnitude_field", new Float32Array([1]));
|
|
123
|
-
console.log("use speed texture");
|
|
124
123
|
if (this._initialSpeedFieldData) {
|
|
125
124
|
this.setSpeedField(this._initialSpeedFieldData);
|
|
126
125
|
this._initialSpeedFieldData = null;
|
|
@@ -425,7 +425,6 @@ export default class WindPlugin {
|
|
|
425
425
|
const { uMax, uMin, vMax, vMin } = this.windData;
|
|
426
426
|
const maxSpeed = Math.sqrt(uMax * uMax + vMax * vMax);
|
|
427
427
|
const minSpeed = Math.sqrt(uMin * uMin + vMin * vMin);
|
|
428
|
-
// console.log("maxSpeed", maxSpeed, "minSpeed", minSpeed);
|
|
429
428
|
this._rampMax = maxSpeed > minSpeed ? maxSpeed : minSpeed;
|
|
430
429
|
this._loadRampMax();
|
|
431
430
|
this.setColorRamp(defaultRampColors);
|
|
@@ -482,7 +481,6 @@ export default class WindPlugin {
|
|
|
482
481
|
gl.useProgram(this.drawFlatProgram.program);
|
|
483
482
|
gl.uniform1f(this.drawFlatProgram.u_particles_res, this.particleStateResolution);
|
|
484
483
|
gl.useProgram(currentProgram);
|
|
485
|
-
// console.log("numParticles", this._numParticles);
|
|
486
484
|
const particleIndices = new Float32Array(this._numParticles);
|
|
487
485
|
for (let i = 0; i < this._numParticles; i++)
|
|
488
486
|
particleIndices[i] = i;
|
|
@@ -596,7 +594,6 @@ export default class WindPlugin {
|
|
|
596
594
|
};
|
|
597
595
|
}
|
|
598
596
|
_loadBoundingBoxData(minX, minY, maxX, maxY) {
|
|
599
|
-
// console.log("minX", minX, "minY", minY, "maxX", maxX, "maxY", maxY)
|
|
600
597
|
const gl = this.gl;
|
|
601
598
|
const bboxMatrix = new Float32Array([
|
|
602
599
|
maxX - minX, 0, 0,
|
|
@@ -703,7 +700,6 @@ export default class WindPlugin {
|
|
|
703
700
|
_loadRampMax() {
|
|
704
701
|
const { gl } = this;
|
|
705
702
|
const currentProgram = gl.getParameter(gl.CURRENT_PROGRAM);
|
|
706
|
-
// console.log("load ramp max", this._rampMax);
|
|
707
703
|
gl.useProgram(this.drawSphereProgram.program);
|
|
708
704
|
gl.uniform1f(this.drawSphereProgram.u_color_ramp_max, this._rampMax);
|
|
709
705
|
gl.useProgram(this.drawFlatProgram.program);
|
|
@@ -894,7 +890,6 @@ export default class WindPlugin {
|
|
|
894
890
|
}
|
|
895
891
|
// globe plugin init methodu
|
|
896
892
|
init(globe, gl) {
|
|
897
|
-
// console.log("init wind plugin")
|
|
898
893
|
this.globe = globe;
|
|
899
894
|
this.gl = gl;
|
|
900
895
|
this.drawSphereProgram = createProgramWrapper(gl, drawSphereVert, drawFrag);
|