Skip to content

Commit

Permalink
Further reduce min zoom, to give more room for small world stereograp…
Browse files Browse the repository at this point in the history
…hic.

Use transparent value for 360 borders (I forgot about premultiplied alpha)
  • Loading branch information
cmbruns committed Jun 20, 2024
1 parent c2adef8 commit a6ddb9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vmg/sphere.frag
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions vmg/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a6ddb9a

Please sign in to comment.