Skip to content

Commit

Permalink
Slightly reduce quad size for map tiles (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
white-axe authored Sep 11, 2023
1 parent 8a3b527 commit 29833bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/graphics/primitives/tiles/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ struct Instance {

const TILE_QUAD: Quad = Quad::new(
egui::Rect::from_min_max(egui::pos2(0., 0.), egui::pos2(32., 32.0)),
egui::Rect::from_min_max(egui::pos2(0., 0.), egui::pos2(32., 32.0)),
// slightly smaller than 32x32 to reduce bleeding from adjacent pixels in the atlas
egui::Rect::from_min_max(egui::pos2(0.01, 0.01), egui::pos2(31.99, 31.99)),
0.0,
);

Expand Down

0 comments on commit 29833bf

Please sign in to comment.