Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

style(desktop): remove explanatory comments from camera preview shader

Richie McIlroy848ebe5db10e
diff --git a/apps/desktop/src-tauri/src/camera.wgsl b/apps/desktop/src-tauri/src/camera.wgsl
index 5caa8f2f1..9b985b3bd 100644
--- a/apps/desktop/src-tauri/src/camera.wgsl
+++ b/apps/desktop/src-tauri/src/camera.wgsl
@@ -168,15 +168,12 @@ fn fs_main(in: VertexOutput) -> @location(0) vec4<f32> {
mask = 1.0;
}
- // Apply the mask with cleaner alpha handling to reduce ghosting
if (mask < 0.05) {
return vec4<f32>(0.0, 0.0, 0.0, 0.0);
}
- // Sample the camera texture
let camera_color = textureSample(t_camera, s_camera, final_uv);
- // Use sharper alpha cutoff to reduce ghosting
let final_alpha = select(1.0, mask, mask < 0.95);
return vec4<f32>(camera_color.rgb, final_alpha);
}