From a6ddb9aba0b9ca61bbe7f3ca6600b2eb8107db0d Mon Sep 17 00:00:00 2001 From: Christopher Bruns Date: Thu, 20 Jun 2024 10:42:04 -0700 Subject: [PATCH] Further reduce min zoom, to give more room for small world stereographic. Use transparent value for 360 borders (I forgot about premultiplied alpha) --- vmg/sphere.frag | 4 ++-- vmg/state.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vmg/sphere.frag b/vmg/sphere.frag index ac478a4..60897b4 100644 --- a/vmg/sphere.frag +++ b/vmg/sphere.frag @@ -19,7 +19,7 @@ void main() { break; case AZ_EQ_PROJECTION: if (! azeqd_valid(p_nic)) { - color = vec4(1, 0, 0, 0); + color = vec4(0); return; } p_obq = azimuthal_equidistant_xyz(p_nic); @@ -30,7 +30,7 @@ void main() { case EQUIRECT_PROJECTION: default : if (! equirect_valid(p_nic)) { - color = vec4(1, 0, 0, 0); + color = vec4(0); return; } p_obq = equirect_xyz(p_nic); diff --git a/vmg/state.py b/vmg/state.py index b7c17ec..fa2217a 100644 --- a/vmg/state.py +++ b/vmg/state.py @@ -453,8 +453,8 @@ def zoom_relative(self, zoom_factor: float, zoom_center: Optional[QPoint]): old_zoom = self._zoom new_zoom = self._zoom * zoom_factor # Limit zoom-out because you never need more than twice the image dimension to move around - if new_zoom <= 0.45: - new_zoom = 0.45 + if new_zoom <= 0.30: + new_zoom = 0.30 self._zoom = new_zoom if zoom_center is not None: p_qwn = LocationQwn(zoom_center.x(), zoom_center.y(), 1)