Skip to content

Commit

Permalink
Merge branch 'ue55' of https://github.com/CesiumGS/cesium-unreal into…
Browse files Browse the repository at this point in the history
… ue55
  • Loading branch information
j9liu committed Nov 25, 2024
2 parents 6a44c2f + 2cc7f7e commit 9134d0b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@ UCesiumBingMapsRasterOverlay::CreateOverlay(
TCHAR_TO_UTF8(*this->BingMapsKey),
mapStyle,
"",
CesiumGeospatial::Ellipsoid::WGS84,
options);
}
4 changes: 4 additions & 0 deletions Source/CesiumRuntime/Private/CesiumGltfComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3393,6 +3393,10 @@ void UCesiumGltfComponent::AttachRasterTile(
EMaterialParameterAssociation::LayerParameter,
i),
translationAndScale);
check(
textureCoordinateID >= 0 &&
textureCoordinateID <
primData.overlayTextureCoordinateIDToUVIndex.size());
pMaterial->SetScalarParameterValueByInfo(
FMaterialParameterInfo(
"TextureCoordinateIndex",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ UCesiumWebMapTileServiceRasterOverlay::CreateOverlay(
wmtsOptions.tileWidth = this->TileWidth;
wmtsOptions.tileHeight = this->TileHeight;

const CesiumGeospatial::Ellipsoid& ellipsoid =
options.ellipsoid.value_or(CesiumGeospatial::Ellipsoid::WGS84);
const CesiumGeospatial::Ellipsoid& ellipsoid = options.ellipsoid;

if (this->Projection ==
ECesiumWebMapTileServiceRasterOverlayProjection::Geographic) {
Expand Down

0 comments on commit 9134d0b

Please sign in to comment.