Skip to content

Commit 5ccd196

Browse files
committed
coderabbit bits
1 parent cbc7937 commit 5ccd196

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

apps/desktop/src/routes/editor/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export function serializeProjectConfiguration(
108108
...rest,
109109
background: {
110110
...backgroundRest,
111-
roundingType: backgroundRoundingType,
111+
rounding_type: backgroundRoundingType,
112112
},
113113
camera: {
114114
...cameraRest,

crates/project/src/configuration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ pub enum CursorAnimationStyle {
408408
Custom,
409409
}
410410

411-
#[derive(Clone, Copy, Debug)]
411+
#[derive(Type, Serialize, Deserialize, Clone, Copy, Debug)]
412412
pub struct CursorSmoothingPreset {
413413
pub tension: f32,
414414
pub mass: f32,

crates/rendering/src/shaders/composite-video-frame.wgsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ fn apply_rounded_corners(current_color: vec4<f32>, target_uv: vec2<f32>) -> vec4
275275
let distance = corner_norm - uniforms.rounding_px;
276276

277277
if distance >= -distance_blur / 2.0 {
278-
return vec4<f32>(0.0);
278+
return vec4<f32>(0.0);
279279
}
280280
}
281281

crates/rendering/src/shaders/cursor.wgsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ fn fs_main(input: VertexOutput) -> @location(0) vec4<f32> {
7373
let direction = motion_vec / motion_len;
7474
let max_offset = motion_len;
7575

76-
for (var i = 0; i < num_samples; i++) {
76+
for (var i = 1; i < num_samples; i++) {
7777
let t = f32(i) / f32(num_samples - 1);
7878
let eased = smoothstep(0.0, 1.0, t);
79-
let offset = direction * max_offset * eased;
79+
let offset = direction * (max_offset * blur_strength) * eased;
8080
let sample_uv = input.uv + offset / uniforms.output_size.xy;
8181

8282
// Sample with bilinear filtering

0 commit comments

Comments
 (0)