CameraFootprint

Source: cameraFootprint.ts:169

The ground area a camera sees: the four screen corners cast onto a reference surface and dropped onto the rendered terrain, plus the center, surface normals and radius derived from them.

The reference surface is the planet ellipsoid raised to the terrain right under the camera, so that a camera on a mountain does not measure its footprint against sea level. Only the height under the camera is used, which keeps the footprint independent of how far the surrounding tiles have loaded.


Constructor

new CameraFootprint(params): CameraFootprint

Instance Methods

update(camera: PlanetCamera): boolean

Takes the footprint of the camera.

Parameters

  • camera (PlanetCamera) — Camera to take the footprint of.

Returns

  • boolean

_getTerrainHeight()

Level the reference ellipsoid is raised to: the terrain right under the camera, and nothing else.