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.
- package/dist/itowns.js +1 -1
- package/dist/itowns.js.map +1 -1
- package/lib/Layer/PointCloudLayer.js +2 -1
- package/package.json +1 -1
|
@@ -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.
|
|
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) {
|