mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-30 07:49:31 -05:00
Add and use TileIndex positionRelativeParent
This commit is contained in:
@@ -80,14 +80,7 @@ namespace globebrowsing {
|
||||
uv.uvOffset *= 0.5;
|
||||
uv.uvScale *= 0.5;
|
||||
|
||||
if (tileIndex.isEastChild()) {
|
||||
uv.uvOffset.x += 0.5;
|
||||
}
|
||||
|
||||
// In OpenGL, positive y direction is up
|
||||
if (tileIndex.isNorthChild()) {
|
||||
uv.uvOffset.y += 0.5;
|
||||
}
|
||||
uv.uvOffset += tileIndex.positionRelativeParent();
|
||||
|
||||
--tileIndex;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user