gfx: Sprite: minor shader simplification
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
031164d9b5
commit
4ac222b36c
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ fn vertMain(
|
|||
pos = uniforms.view_projection * pos; // pixels -> normalized
|
||||
|
||||
uv *= sprite_size; // normalized -> pixels
|
||||
uv = (sprite_uv_transform * vec3<f32>(uv.xy, 1)).xy; // apply sprite UV transform (pixels)
|
||||
uv = (sprite_uv_transform * vec3<f32>(uv, 1)).xy; // apply sprite UV transform (pixels)
|
||||
uv /= uniforms.texture_size; // pixels -> normalized
|
||||
|
||||
var output : VertexOutput;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue