Skip to content

Commit

Permalink
Use linear filtering when zoomed out (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlange-42 authored Feb 23, 2024
1 parent bb9736b commit 11b8642
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions game/render/terrain.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func (s *Terrain) UpdateUI(world *ecs.World) {

op := ebiten.DrawImageOptions{}
op.Blend = ebiten.BlendSourceOver
if view.Zoom < 1 {
op.Filter = ebiten.FilterLinear
}

halfWidth := view.TileWidth / 2

Expand Down

0 comments on commit 11b8642

Please sign in to comment.