Skip to content

Commit

Permalink
Fixes #4377
Browse files Browse the repository at this point in the history
  • Loading branch information
erikmaarten committed Oct 31, 2016
1 parent 8126d5d commit 6e4b282
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/Scene/ImageryLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@ define([
imageryRectangle = imageryTileXYToRectangle(i, northwestTileCoordinates.y, imageryLevel);
clippedImageryRectangle = Rectangle.simpleIntersection(imageryRectangle, imageryBounds, clippedRectangleScratch);

if (!defined(clippedImageryRectangle)) {
continue;
}

maxU = Math.min(1.0, (clippedImageryRectangle.east - terrainRectangle.west) / terrainRectangle.width);

// If this is the eastern-most imagery tile mapped to this terrain tile,
Expand All @@ -584,6 +588,11 @@ define([

imageryRectangle = imageryTileXYToRectangle(i, j, imageryLevel);
clippedImageryRectangle = Rectangle.simpleIntersection(imageryRectangle, imageryBounds, clippedRectangleScratch);

if (!defined(clippedImageryRectangle)) {
continue;
}

minV = Math.max(0.0, (clippedImageryRectangle.south - terrainRectangle.south) / terrainRectangle.height);

// If this is the southern-most imagery tile mapped to this terrain tile,
Expand Down

0 comments on commit 6e4b282

Please sign in to comment.