Occluder
external class Occluder(occluderBoundingSphere: BoundingSphere, var cameraPosition: Cartesian3)(source)
Creates an Occluder derived from an object's position and radius, as well as the camera position. The occluder can be used to determine whether or not other objects are visible or hidden behind the visible horizon defined by the occluder and camera position.
// Construct an occluder one unit away from the origin with a radius of one.
const cameraPosition = Cartesian3.ZERO;
const occluderBoundingSphere = new BoundingSphere(new Cartesian3(0, 0, -1), 1);
const occluder = new Occluder(occluderBoundingSphere, cameraPosition);
Content copied to clipboard
Parameters
occluderBoundingSphere
The bounding sphere surrounding the occluder.
See also
Properties
Functions
Link copied to clipboard
Determine to what extent an occludee is visible (not visible, partially visible, or fully visible).
Link copied to clipboard
Determines whether or not a sphere, the occludee
, is hidden from view by the occluder.
Link copied to clipboard
Determines whether or not a point, the occludee
, is hidden from view by the occluder.