I have just updated my WebGL project from version 2021.1 to 2021.2, and without doing any changes i did a build to test it out. It worked fine, no errors, didn't see much improvement on build speed or size though. But i did noticed something that bugged me immediately, the objects edges got aliased even though i have all the anti-aliasing settings right, the exact same settings from the previous version. I tried to tweek some settings but nothing changes. Example bellow: Unity 2021.1.24f Unity 2021.2.0 I'm using the built-in render pipeline. The settings, scenes, lightning, objects are exactly the same on both builds. Has something changed? Any suggestions? I like to always work on the last versions. But i was forced to go back to 2021.1 because of this.
Hi! This is a strange one, we haven't made any changes to WebGL related to MSAA in 2021.2. Please open a bug report so we can take a look at all the settings and figure out if there's a bug here. If you do, send me the issue tracker number so I can follow up on it.
@Carpet_Head that's not good! I'll ask you to open a bug report so we can look into it as soon as possible. If you send me the bug report number I'll follow up on it.
I am seeing this issue to and will look into it. Nothing explicitly changed with MSAA, but a lot of underlying tech changed between 2021.1 and 2021.2, including a new version of Emscripten.
Same here, using URP and 2021.2f1, MSAA is not working, but setting the Renderscale to 2 helps for now.
You can see the issue tracker: https://issuetracker.unity3d.com/issues/webgl-msaa-effect-is-not-applied-in-build It has been "Fix In Review" for a long time now. It is such a big oversight that renders webgl practically unusable in 2021.2+
Yeah sorry about that. The fix was part of an overall Emscripten upgrade, since the bug was in Emscripten, and that always takes longer than expected. The fix is in the merge queue, we're just waiting on it to get through.
Just ran into this issue as well and spent a couple of hours trying to figure out why we didn't get any AA anymore after upgrading to 2021.2.9. I hope the fix ends up in a release soon. Still not fixed in 2021.2.10f1...
@anthony_b_ It should be fixed in 2021.2.11, but after a quick build and testing... it still isn't applying MSAA with URP. Whilst it is mentioned in the release notes, it is not fixed.
I can unfortunately also confirm that the bug is *not* fixed. So Unity, what's going on here? The release notes for 2021.2.11f1 says it is fixed.
Sounds like there was a mis-alignment of the release notes and where the fix landed. I will look into where it landed.
I apologize for the release notes saying it was fixed in 2021.2. It should have been but there was a mis-step in the merge process for the 2021.2 backport. I had marked it as verified fixed in 2021.2, but realize now I had tested 2022. The real fix for 2021.2 is getting sorted out now.
I've just built a sample project with 2021.2.15 and can confirm it is finally fixed. It took a while, been looking for every update every week. Thanks for looking into the issue and fixing it.
Sorry about it taking so long. The problem was down in Emscripten, and while the fix was simple, getting the patches coordinated took a lot longer than expected.