AA in polygon

Avatar
  • updated
  • Not a bug

Hi!, I am having troubles with polygon shapes, It doesn't matter if the AA quality is set to high or none that my polygon still looks jaggy, its working with disc, and regular polygons, here a screenshot https://gyazo.com/874babb216ca43a9f30ec14e9a735146 left: Regular polygon, Right: Polygon. In something as simple as this, the difference is not much, but with more complex shapes is more noticeable. Not sure if the this is a bug or polygons can't have AA

Reporting a bug? please specify Unity version:
2020.1.1
Reporting a bug? please specify Shapes version:
3.0.0
Reporting a bug? please specify Render Pipeline:
URP
Pinned replies
Avatar
Freya Holmér creator
  • Answer
  • Not a bug

generally, LAA is only possible on predictable simple 2D shapes, and polygons are unfortunately not one of those

triangle and quad may get LAA support in the future, but it's a much harder problem to solve efficiently for the polygon, so that one is likely never going to get LAA
there's more info on what each shape will support at the bottom of the docs here, in the feature table!
https://www.acegikmo.com/shapes/docs/#shapes-feature-table

that being said, if your project has some kind of AA, either MSAA or some post processing AA, then polygons should be able to pick that up just like any other 3D geometry

Avatar
Freya Holmér creator
  • Answer
  • Not a bug

generally, LAA is only possible on predictable simple 2D shapes, and polygons are unfortunately not one of those

triangle and quad may get LAA support in the future, but it's a much harder problem to solve efficiently for the polygon, so that one is likely never going to get LAA
there's more info on what each shape will support at the bottom of the docs here, in the feature table!
https://www.acegikmo.com/shapes/docs/#shapes-feature-table

that being said, if your project has some kind of AA, either MSAA or some post processing AA, then polygons should be able to pick that up just like any other 3D geometry

Avatar
jose rodriguez
Quote from Freya Holmér

generally, LAA is only possible on predictable simple 2D shapes, and polygons are unfortunately not one of those

triangle and quad may get LAA support in the future, but it's a much harder problem to solve efficiently for the polygon, so that one is likely never going to get LAA
there's more info on what each shape will support at the bottom of the docs here, in the feature table!
https://www.acegikmo.com/shapes/docs/#shapes-feature-table

that being said, if your project has some kind of AA, either MSAA or some post processing AA, then polygons should be able to pick that up just like any other 3D geometry

hmm that's unfortunate, we have smaa in our project but it ignores de UI, anyway, I will try to look for a work around. Thank you!