WIP
This commit is contained in:
parent
45429b5400
commit
4208ac2958
7 changed files with 26 additions and 66 deletions
|
@ -631,9 +631,8 @@ impl Renderer {
|
|||
glyph.origin,
|
||||
) {
|
||||
// Snap sprite to pixel grid.
|
||||
let origin = dbg!(
|
||||
dbg!((glyph.origin * scale_factor).floor()) + dbg!(sprite.offset.to_f32())
|
||||
);
|
||||
let origin = (glyph.origin * scale_factor).floor() + sprite.offset.to_f32();
|
||||
// dbg!(origin);
|
||||
sprites_by_atlas
|
||||
.entry(sprite.atlas_id)
|
||||
.or_insert_with(Vec::new)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue