snap text on shader
This commit is contained in:
@@ -61,8 +61,8 @@ fn vs_main(
|
||||
) -> VertexOutput {
|
||||
var out: VertexOutput;
|
||||
|
||||
let top_left = in.top_left_anchor * window.dim + in.top_left_offset;
|
||||
let bot_right = in.bottom_right_anchor * window.dim + in.bottom_right_offset;
|
||||
let top_left = round(in.top_left_anchor * window.dim) + in.top_left_offset;
|
||||
let bot_right = round(in.bottom_right_anchor * window.dim) + in.bottom_right_offset;
|
||||
let size = bot_right - top_left;
|
||||
|
||||
let uv = vec2<f32>(
|
||||
|
||||
Reference in New Issue
Block a user