Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(camera): use crop aspect for full shape mask in shader

Richie McIlroy67954830d25a
diff --git a/apps/desktop/src-tauri/src/camera.wgsl b/apps/desktop/src-tauri/src/camera.wgsl
index 9b985b3bd..332bf5b72 100644
--- a/apps/desktop/src-tauri/src/camera.wgsl
+++ b/apps/desktop/src-tauri/src/camera.wgsl
@@ -138,7 +138,7 @@ fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
mask = 1.0 - smoothstep(-aa_width, aa_width, edge_distance);
} else if (shape == 2.0) {
// Full shape with aspect ratio-corrected rounded corners
- let window_aspect = window_uniforms.window_width / window_uniforms.window_height;
+ let window_aspect = crop_aspect;
// Interpolate corner radius based on normalized size (0-1)
let corner_radius = mix(0.08, 0.12, size);