Merge branch 'master' into beacon

This commit is contained in:
Héctor Ramón Jiménez 2024-05-14 20:10:29 +02:00
commit a90b1fba89
No known key found for this signature in database
GPG key ID: 4C07CEC81AFA161F
14 changed files with 41 additions and 42 deletions

View file

@ -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);