summaryrefslogtreecommitdiff
path: root/client/src/ui.wgsl
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-01-17 23:32:27 +0100
committermetamuffin <metamuffin@disroot.org>2025-01-17 23:32:27 +0100
commitf5ffcaf01b91daf0019dd6534b035398fa51f2f0 (patch)
treeef271596fee967ded3c7c1668033bba97823afbd /client/src/ui.wgsl
parent1ca762dedcdd6c87086560dd56ab3566b08243d0 (diff)
downloadweareserver-f5ffcaf01b91daf0019dd6534b035398fa51f2f0.tar
weareserver-f5ffcaf01b91daf0019dd6534b035398fa51f2f0.tar.bz2
weareserver-f5ffcaf01b91daf0019dd6534b035398fa51f2f0.tar.zst
fix ui unprojection
Diffstat (limited to 'client/src/ui.wgsl')
-rw-r--r--client/src/ui.wgsl3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/ui.wgsl b/client/src/ui.wgsl
index 4f55e25..a444f71 100644
--- a/client/src/ui.wgsl
+++ b/client/src/ui.wgsl
@@ -39,8 +39,7 @@ fn unpack_color(color: u32) -> vec4<f32> {
@vertex
fn vs_main(@builtin(vertex_index) vindex: u32, vi: VertexIn) -> VertexOut {
- var clip = project * vec4(vi.pos / 10., 0., 1.);
- // var clip = vec4(vi.pos / 100., 0., 1.);
+ var clip = project * vec4(vi.pos, 0., 1.);
let vo = VertexOut(clip, vi.uv, unpack_color(vi.color));
return vo;
}