Merge pull request #2440 from iced-rs/align-images-to-pixel-grid
Align images to the (logical) pixel grid in `iced_wgpu`
This commit is contained in:
commit
b30d34f728
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ fn vs_main(input: VertexInput) -> VertexOutput {
|
|||
out.opacity = input.opacity;
|
||||
|
||||
// Calculate the vertex position and move the center to the origin
|
||||
v_pos = input.pos + v_pos * input.scale - input.center;
|
||||
v_pos = round(input.pos) + v_pos * input.scale - input.center;
|
||||
|
||||
// Apply the rotation around the center of the image
|
||||
let cos_rot = cos(input.rotation);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue