Johannes Hofmann
f70407d4ce
Move MIN_ZOOM_LEVEL, MAX_ZOOM_LEVEL to map_view
7 anni fa
Johannes Hofmann
41c480b1d1
Fix code that assumes that tiles touch the poles
Web-mercator tiles don't touch the poles.
7 anni fa
Johannes Hofmann
f95d4268c8
Add OrthograficView::zoom_at
which only includes a dummy implementation.
7 anni fa
Johannes Hofmann
f0dcd3a80c
Fix OrthograficView::covers_viewport
7 anni fa
Johannes Hofmann
87739486fd
OrthograficView::radius_physical_pixels -> diameter_*
7 anni fa
Johannes Hofmann
15c9e053e9
{mercator,orthografic}_view: Convert ScreenCoords
Add functions to convert screen coordinates to MapCoord/LatLonRad.
7 anni fa
Johannes Hofmann
03c33086ba
Spherical tile visibility, part IV
Partial solution. Check AABB of tile vertices.
7 anni fa
Johannes Hofmann
2651bfe138
Fix clippy warnings
7 anni fa
Johannes Hofmann
b3e327b59c
Add overly dramatic atmosphere layer
Toggle with Ctrl+h
7 anni fa
Johannes Hofmann
69a245c187
Fix accuracy issue at high zoom levels in ortho view
This now uses an f64 transformation matrix (instead of f32) to transform
points on the sphere to screen coordinates. Conversion to f32 vertex
positions happens as a last step before uploading to a GPU buffer.
7 anni fa
Johannes Hofmann
7d5997991a
Improve tile rendering in orthografic view
* Reach feature parity with mercator view:
* Resize tile atlas to reduce draw calls
* Fill in tiles from other zoom layers
7 anni fa
Johannes Hofmann
cf5a195488
Spherical tile visibility, part III
Still a partial solution. Uses region growing starting from the central
tile and checks if at least one of the vertices is visible.
7 anni fa
Johannes Hofmann
eefea571ea
Add orthografic_view::tile_neighbors and tests
7 anni fa
Johannes Hofmann
cf7f21acc3
Restructure modules
* Split up map_view module into
* map_view
* mercator_view
* orthografic_view
7 anni fa