diff --git a/crates/encoding/src/path.rs b/crates/encoding/src/path.rs index c1c521d3..fb97f2d7 100644 --- a/crates/encoding/src/path.rs +++ b/crates/encoding/src/path.rs @@ -207,6 +207,7 @@ pub struct SegmentCount { #[derive(Clone, Copy, Debug, Zeroable, Pod, Default)] #[repr(C)] pub struct PathSegment { + // Points are relative to tile origin pub point0: [f32; 2], pub point1: [f32; 2], pub y_edge: f32, diff --git a/shader/fine.wgsl b/shader/fine.wgsl index 8e3046f8..80c34948 100644 --- a/shader/fine.wgsl +++ b/shader/fine.wgsl @@ -224,6 +224,8 @@ fn fill_path_ms(fill: CmdFill, local_id: vec2, result: ptr= xy0.x; let x_sign = select(-1.0, 1.0, is_positive_slope); let xt0 = floor(xy0.x * x_sign); @@ -244,15 +246,29 @@ fn fill_path_ms(fill: CmdFill, local_id: vec2, result: ptr, result: ptr