- Home /
Anti Aliasing gives skybox artifacts with particles in forward
When turning on AA and rendering in foward objects in front of particles get white artifacts around them. See image
Anything we can do about this?
Hi I'm battling with the same issue, did you find a workaround? Thanks a lot in advance! Here's an image of what $$anonymous$$e looks like (which seems to be exactly the same :-/ )
Answer by Pangamini · Nov 02, 2021 at 09:29 AM
I am pretty sure this is related to some screenspace effects (including directional light shadows) that don't work well with MSAA, for the simple reason that with MSAA, one pixel on the screen is occupied by multiple triangles with multiple depth values, and the screenspace effects only work with the resolved, antialiased image. In general, any screenspace effects that use depth will cause these artifacts. There's little you can do about it, other than
Not using MSAA
Not using these effects You could replace some of the screenspace effects and place them directly to your object surface shader. For example,
fog can be a part of the object's color output.
Directional shadows in unity are resolved in screenspace, this could be theoretically done in the object shader.
Overall, the currently commonly used and developed set of rendering techniques is not MSAA friendly, that's why there's a lot of effort in developing postprocessing alternatives
Thanks a lot for your reply! Especially, thanks for the list of alternative methods.
For others stumpling upon this: I also found the following threads that concerns the same root topic: - https://forum.unity.com/threads/fixing-screen-space-directional-shadows-and-anti-aliasing.379902/ - https://www.reddit.com/r/Unity3D/comments/6ng7jj/i_made_a_workaround_for_a_longstanding_issue_with/
Your answer

Follow this Question
Related Questions
There any way to disable anti-alias for a specific shader? 1 Answer
Unity Free + iOS $400 anti-aliasing? 1 Answer
How to apply antialiasing to UI text? 0 Answers
Deferred lighting: How to improve quality and anti-aliasing? 4 Answers
Is it possible to apply antialiasing only to shallower depth? 0 Answers