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