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.
alias Occluder
- {BoundingSphere} occluderBoundingSphere The bounding sphere surrounding the occluder.
- {Cartesian3} cameraPosition The coordinate of the viewer/camera.
Annotations
@RawJSType()@native()@JSName("Cesium.Occluder")
Example:
// Construct an occluder one unit away from the origin with a radius of one.
var cameraPosition = Cesium.Cartesian3.ZERO;
var occluderBoundingSphere = new Cesium.BoundingSphere(new Cesium.Cartesian3(0, 0, -1), 1);
var occluder = new Cesium.Occluder(occluderBoundingSphere, cameraPosition);
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.
alias Occluder
- {BoundingSphere} occluderBoundingSphere The bounding sphere surrounding the occluder. - {Cartesian3} cameraPosition The coordinate of the viewer/camera.
// Construct an occluder one unit away from the origin with a radius of one. var cameraPosition = Cesium.Cartesian3.ZERO; var occluderBoundingSphere = new Cesium.BoundingSphere(new Cesium.Cartesian3(0, 0, -1), 1); var occluder = new Cesium.Occluder(occluderBoundingSphere, cameraPosition);