Skip to content

Commit

Permalink
Changing screen Textures to use Nearest filter instead of Linear.
Browse files Browse the repository at this point in the history
  • Loading branch information
lanceewing committed Apr 7, 2024
1 parent 950b015 commit 285ff87
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/main/java/com/agifans/agile/GameScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ public GameScreen(Agile agile, AgileRunner agileRunner, DialogHandler dialogHand
agileRunner.init(this, screenPixmap);
screens = new Texture[3];
screens[0] = new Texture(screenPixmap, Pixmap.Format.RGBA8888, false);
screens[0].setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
screens[0].setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Nearest);
screens[1] = new Texture(screenPixmap, Pixmap.Format.RGBA8888, false);
screens[1].setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
screens[1].setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Nearest);
screens[2] = new Texture(screenPixmap, Pixmap.Format.RGBA8888, false);
screens[2].setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);
screens[2].setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Nearest);

camera = new OrthographicCamera();
viewport = new ExtendViewport(ADJUSTED_WIDTH, ADJUSTED_HEIGHT, camera);
Expand Down

0 comments on commit 285ff87

Please sign in to comment.