The rounded rectangle in fill mode has strong aliasing.
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
The rounded rectangle in fill mode has strong aliasing.
* fill mode
* line mode
Looking at the source image, they are quite different.Re: The rounded rectangle in fill mode has strong aliasing.
Drawing filled circles also has the same issue.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: The rounded rectangle in fill mode has strong aliasing.
Lines have their own custom antialiasing/smoothing applied by default (the "smooth" line style) which is only for lines and not other things like images or filled shapes. To have antialiasing on filled shapes, two common approaches are to enable MSAA on the window or to draw a line shape at the same spot as the filled shape.
Re: The rounded rectangle in fill mode has strong aliasing.
Thanksslime wrote: ↑Mon Jun 10, 2024 2:21 am Lines have their own custom antialiasing/smoothing applied by default (the "smooth" line style) which is only for lines and not other things like images or filled shapes. To have antialiasing on filled shapes, two common approaches are to enable MSAA on the window or to draw a line shape at the same spot as the filled shape.
Re: The rounded rectangle in fill mode has strong aliasing.
Also see this alternative, drawing a quad Mesh and using a shader for antialiasing the round corners:
viewtopic.php?p=259055#p259055
If you need the rectangle to be drawn while rotated then you'd need a different shader, one that smooths not only the round corners but also the straight sides.
viewtopic.php?p=259055#p259055
If you need the rectangle to be drawn while rotated then you'd need a different shader, one that smooths not only the round corners but also the straight sides.
Who is online
Users browsing this forum: No registered users and 3 guests