mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-22 02:48:25 -05:00
Account for tile pixel start offset and size difference when calculating height on globe.
This commit is contained in:
@@ -305,7 +305,12 @@ namespace globebrowsing {
|
||||
if (tile.status != Tile::Status::OK) {
|
||||
return 0;
|
||||
}
|
||||
glm::vec2 transformedUv = uvTransform.uvOffset + uvTransform.uvScale * patchUV;
|
||||
//glm::vec2 transformedUv = uvTransform.uvOffset + uvTransform.uvScale * patchUV;
|
||||
|
||||
glm::vec2 transformedUv = Tile::TileUvToTextureSamplePosition(
|
||||
uvTransform,
|
||||
patchUV,
|
||||
glm::uvec2(tile.texture->dimensions()));
|
||||
|
||||
// Sample and do linear interpolation
|
||||
// (could possibly be moved as a function in ghoul texture)
|
||||
|
||||
Reference in New Issue
Block a user