PR feedback part 2

This commit is contained in:
Jeshurun Hembd 2025-10-31 18:05:08 -04:00
parent 7f81c437f4
commit b321b6fadc
3 changed files with 6 additions and 2 deletions

View File

@ -858,7 +858,7 @@ const scratchUv2 = new Cartesian2();
const scratchBary = new Cartesian3();
/**
* Computes the terrain height at a specified longitude and latitude.
* Computes the terrain height at a specified longitude and latitude. Returns 0.0 if the position is outside the mesh.
* @private
* @param {TerrainMesh} mesh The terrain mesh.
* @param {Rectangle} rectangle The rectangle covered by this terrain data.
@ -923,6 +923,7 @@ function interpolateMeshHeight(mesh, rectangle, longitude, latitude) {
}
// Position does not lie in any triangle in this mesh.
// This should not happen often since we start by clamping to the rectangle.
return 0.0;
}

View File

@ -15,6 +15,7 @@ import CesiumMath from "./Math.js";
* @see CesiumTerrainProvider
* @see VRTheWorldTerrainProvider
* @see GoogleEarthEnterpriseTerrainProvider
* @see ArcGISTiledElevationTerrainProvider
* @see Cesium3DTilesTerrainProvider
*/
function TerrainProvider() {

View File

@ -1,6 +1,8 @@
legacyId: Globe Materials 3D Tiles Terrain.html
title: Globe Materials 3D Tiles Terrain
description: Apply materials to the globe.
description: Load a 3D Tiles tileset as terrain, and apply globe material properties to style the terrain.
labels:
- 3D Tiles
- Terrain
- Showcases
thumbnail: thumbnail.jpg