From 18af80094a4ab08082960dc2f439f31c938ed271 Mon Sep 17 00:00:00 2001 From: gchoqueux Date: Fri, 10 Mar 2023 11:55:38 +0100 Subject: [PATCH] refactor(GlobeLayer): pass in static the method horizonCulling. --- src/Core/Prefab/Globe/GlobeLayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Prefab/Globe/GlobeLayer.js b/src/Core/Prefab/Globe/GlobeLayer.js index 37fcfbbaa3..e583a7bb3d 100644 --- a/src/Core/Prefab/Globe/GlobeLayer.js +++ b/src/Core/Prefab/Globe/GlobeLayer.js @@ -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);