Skip to content

Stroked circle width jumps at 2 #183339

Description

@gaaclarke

steps to reproduce

  1. run the test from Migrated circle sdf to euclidean 2d derivative #183184
  2. manipulate the fine width control around width = 2.0
  3. notice that the width jumps.

description

This has to do with the following code, removing it removes the jump.

  // If the screen space derivative is less than the stroke width,
  // only one pixel can be covered and shouldn't be faded.
  if (frag_info.stroked > 0.0 &&
      pixel_derivative_sdf * 2.0 >= frag_info.stroke_width) {
    sdf_distance = -frag_info.radius;
  }

video

circlesnap.mov

cc @walley892

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work liste: impellerImpeller rendering backend issues and features requeststeam-engineOwned by Engine teamtriaged-engineTriaged by Engine team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions