FrustumCullingStrategy.d.ts 1.1 KB

12345678910111213141516171819202122
  1. import type { ICamera } from '../camera';
  2. import type { DisplayObject } from '../display-objects/DisplayObject';
  3. import type { CullingStrategyContribution } from './CullingPlugin';
  4. export declare class FrustumCullingStrategy implements CullingStrategyContribution {
  5. isVisible(camera: ICamera, object: DisplayObject): boolean;
  6. /**
  7. *
  8. * @see「Optimized View Frustum Culling Algorithms for Bounding Boxes」
  9. * @see https://github.com/antvis/GWebGPUEngine/issues/3
  10. *
  11. * * 基础相交测试 the basic intersection test
  12. * * 标记 masking @see https://cesium.com/blog/2015/08/04/fast-hierarchical-culling/
  13. * * TODO: 平面一致性测试 the plane-coherency test
  14. * * TODO: 支持 mesh 指定自身的剔除策略,参考 Babylon.js @see https://doc.babylonjs.com/how_to/optimizing_your_scene#changing-mesh-culling-strategy
  15. *
  16. * @param aabb aabb
  17. * @param parentPlaneMask mask of parent
  18. * @param planes planes of frustum
  19. */
  20. private computeVisibilityWithPlaneMask;
  21. }
  22. //# sourceMappingURL=FrustumCullingStrategy.d.ts.map