Describe the bug
If the ellipse height and width are equal, the ellipse mask vanishes.
To Reproduce
Steps to reproduce the behavior:
Create an ellipse mask.
Set the width and the height to the same size.
Witness the ellipse mask disappear.
Expected behavior
Ellipse masks with an equal height and width should render as a circle.
Additional context
This is due to the SDF function used, which divides by the difference between the width squared and height squared. If width equals height, this causes a divide by zero. Easy fix is to check before calling the render function, and if width == height, call the circle shader instead, after setting the circle radius to the ellipse width/height value.
Describe the bug If the ellipse height and width are equal, the ellipse mask vanishes.
To Reproduce Steps to reproduce the behavior:
Expected behavior Ellipse masks with an equal height and width should render as a circle.
Additional context This is due to the SDF function used, which divides by the difference between the width squared and height squared. If width equals height, this causes a divide by zero. Easy fix is to check before calling the render function, and if width == height, call the circle shader instead, after setting the circle radius to the ellipse width/height value.