Skip to content

Commit

Permalink
refactor(GlobeLayer): pass in static the method horizonCulling.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchoqueux committed Mar 15, 2023
1 parent 05eb368 commit 18af800
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Core/Prefab/Globe/GlobeLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ class GlobeLayer extends TiledGeometryLayer {
return false;
}

return this.horizonCulling(node.horizonCullingPointElevationScaled);
return GlobeLayer.horizonCulling(node.horizonCullingPointElevationScaled);
}

horizonCulling(point) {
static horizonCulling(point) {
// see https://cesiumjs.org/2013/04/25/Horizon-culling/
scaledHorizonCullingPoint.copy(point).applyMatrix4(worldToScaledEllipsoid);
scaledHorizonCullingPoint.sub(cameraPosition);
Expand Down

0 comments on commit 18af800

Please sign in to comment.