ol 10.2.2-dev.1728459826897 → 10.2.2-dev.1728502482077
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/dist/ol.js +1 -1
- package/dist/ol.js.map +1 -1
- package/package.json +1 -1
- package/renderer/webgl/FlowLayer.js +4 -4
- package/util.js +1 -1
package/package.json
CHANGED
|
@@ -448,8 +448,8 @@ class FlowLayerRenderer extends WebGLTileLayerRenderer {
|
|
|
448
448
|
);
|
|
449
449
|
|
|
450
450
|
const rotation = this.tempVec2_;
|
|
451
|
-
rotation[0] = Math.cos(frameState.viewState.rotation);
|
|
452
|
-
rotation[1] = Math.sin(frameState.viewState.rotation);
|
|
451
|
+
rotation[0] = Math.cos(-frameState.viewState.rotation);
|
|
452
|
+
rotation[1] = Math.sin(-frameState.viewState.rotation);
|
|
453
453
|
this.helper.setUniformFloatVec2(U.ROTATION, rotation);
|
|
454
454
|
|
|
455
455
|
this.helper.setUniformFloatValue(U.MAX_SPEED, this.maxSpeed_);
|
|
@@ -478,8 +478,8 @@ class FlowLayerRenderer extends WebGLTileLayerRenderer {
|
|
|
478
478
|
helper.setUniformFloatValue(U.DROP_RATE_BUMP, this.dropRateBump_);
|
|
479
479
|
|
|
480
480
|
const rotation = this.tempVec2_;
|
|
481
|
-
rotation[0] = Math.cos(frameState.viewState.rotation);
|
|
482
|
-
rotation[1] = Math.sin(frameState.viewState.rotation);
|
|
481
|
+
rotation[0] = Math.cos(-frameState.viewState.rotation);
|
|
482
|
+
rotation[1] = Math.sin(-frameState.viewState.rotation);
|
|
483
483
|
this.helper.setUniformFloatVec2(U.ROTATION, rotation);
|
|
484
484
|
|
|
485
485
|
const size = frameState.size;
|
package/util.js
CHANGED