diff --git a/shader/fine.wgsl b/shader/fine.wgsl index 9bd7da3a..f41747d8 100644 --- a/shader/fine.wgsl +++ b/shader/fine.wgsl @@ -145,12 +145,7 @@ fn fill_path_ms(fill: CmdFill, wg_id: vec2, local_id: vec2) -> array, local_id: vec2) -> array= xy0.x; let sign = select(-1.0, 1.0, is_positive_slope); let xt0 = floor(xy0.x * sign); let c = xy0.x * sign - xt0; - // This has a special case in the JS code, but we should just not render let y0i = floor(xy0.y); - let ytop = select(y0i + 1.0, ceil(xy0.y), xy0.y == xy1.y); + let ytop = y0i + 1.0; let b = dy_dxdy * c + a * (ytop - xy0.y); let x0i = i32(xt0 * sign + 0.5 * (sign - 1.0)); // Use line equation to plot pixel coordinates diff --git a/src/lib.rs b/src/lib.rs index f383fd0f..006accd3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -73,7 +73,7 @@ enum AaConfig { /// Configuration of antialiasing. Currently this is static, but could be switched to /// a launch option or even finer-grained. -const ANTIALIASING: AaConfig = AaConfig::Msaa16; +const ANTIALIASING: AaConfig = AaConfig::Area; /// Renders a scene into a texture or surface. #[cfg(feature = "wgpu")]