forked from 1b-agent/opencadstudio-upstream
feat(web): unify fonts and refine viewcube
Preload one language-aware font resource across the interface, drawing text, and navigation labels.\n\nRender the navigation cube, ring, outlines, and labels through a 4x MSAA target.
This commit is contained in:
1 parent
8dc642d40c
commit
53cf31f33d
26 files changed
+1337
-522
No files matched your search
@@ -8,7 +8,7 @@ struct Uniforms {
|
||||
@group(0) @binding(2) var tex: texture_2d<f32>;
|
||||
|
||||
struct VsIn {
|
||||
@location(0) pos: vec2<f32>,
|
||||
@location(0) pos: vec3<f32>,
|
||||
@location(1) uv: vec2<f32>,
|
||||
@location(2) color: vec4<f32>,
|
||||
};
|
||||
@@ -26,7 +26,7 @@ fn vs_main(input: VsIn) -> VsOut {
|
||||
(input.pos.x / u.screen.x) * 2.0 - 1.0,
|
||||
1.0 - (input.pos.y / u.screen.y) * 2.0
|
||||
);
|
||||
out.pos = vec4<f32>(ndc, 0.0, 1.0);
|
||||
out.pos = vec4<f32>(ndc, input.pos.z, 1.0);
|
||||
out.uv = input.uv;
|
||||
out.color = input.color;
|
||||
return out;
|
||||
|
||||
Reference in new issue
Block a user