itowns 2.44.2-next.4 → 2.44.2-next.5

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.
@@ -227,7 +227,8 @@ class PointCloudLayer extends GeometryLayer {
227
227
  return;
228
228
  }
229
229
  elt.notVisibleSince = undefined;
230
- point.copy(context.camera.camera3D.position).sub(this.object3d.position);
230
+ point.copy(context.camera.camera3D.position).sub(this.object3d.getWorldPosition(new THREE.Vector3()));
231
+ point.applyQuaternion(this.object3d.getWorldQuaternion(new THREE.Quaternion()).invert());
231
232
 
232
233
  // only load geometry if this elements has points
233
234
  if (elt.numPoints !== 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itowns",
3
- "version": "2.44.2-next.4",
3
+ "version": "2.44.2-next.5",
4
4
  "description": "A JS/WebGL framework for 3D geospatial data visualization",
5
5
  "type": "module",
6
6
  "main": "lib/Main.js",